View Single Post
Old 01-04-2013, 11:00 AM   PM User | #1
jeddi
Senior Coder

 
Join Date: May 2006
Posts: 1,521
Thanks: 26
Thanked 4 Times in 4 Posts
jeddi has a little shameless behaviour in the past
HTML5 - width=100% not valid problem

Hi,

In my HTML I have this code:

Code:
<img alt="My website pages" title = "My website pages" width="100%" height="150px" src="http://simpg.net/sys_images/simplepage.png"  >
And it displays just fine.

But when I validate it I get:
Bad value 100% for attribute width on element img: Expected a digit but saw % instead.

If I take out the width="100%" then the image doesn't stretch across the screen and doesn't look so good.

Is there an "official" way to stretch the image to fill the screen width ?

Thanks.


.
__________________
If you want to attract and keep more clients, then offer great customer support.

Support-Focus.com. automates the process and gives you a trust seal to place on your website.
I recommend that you at least take the 30 day free trial.
jeddi is offline   Reply With Quote