View Full Version : html5 Width / Height as a Percentage


Simon_MT
01-10-2012, 03:21 PM
I noticed that it you use width="100%" or height="100%", or any percentage, this will no longer validate. html5 should support html4 but in this case it doesn't.

Instead you have to use css to declare, in this case, the width as 100% and then on the whatever html or script page width="0"

I use spacers to vertically align disparate images and these don't work correctly if the width is set to zero, alone. Obviously the height is variable.

Simon

Simon_MT
03-02-2012, 01:21 PM
With a script language like ASP or PHP.

Simon