html5 Width / Height as a Percentage (1 Viewer)

Simon_MT

Registered User.
Local time
Today, 00:15
Joined
Feb 26, 2007
Messages
2,177
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

Registered User.
Local time
Today, 00:15
Joined
Feb 26, 2007
Messages
2,177
With a script language like ASP or PHP.

Simon
 

Users who are viewing this thread

Top Bottom