The only way to have this in proper control is to use Javascript to calculate the proper values. This is what I had before. However, when I wanted to have it fluid without the need to use Javascript for that, it was discovered that IE 10 and lower does not support that. So, I went back to the old mode.