Skip to Content

Stylegala Forums » Forums list » Problem solving

the IE <img> whitespace bug.

the IE <img> whitespace bug.

post new topic Post new topic    Reply to topic Reply to topic

Author Message
Lost_User

  • Joined: 22 Jun 2006
  • Posts: 0
  • Status: Offline
Reply with quote Post Posted: Tue Jul 26, 2005 19:52
forgive me if this has been asked before, ive searched the forums and not found the answer.


I'm aware of the IE PC issue of adding a few pixels of whitespace after an img tag.

and i'm aware of the fix for this issue of putting everything on the same line of code .

Is there a better way to deal with this issue? The only other fix i can figure is adding :

img { display: block; } to the css, which fixes the issue but creates a whole new mess.

Is there a workaround that doesnt involve messing up your source code formatting?

Thanks!

Andy

View user's profile Send private message
 
Sponsor
 
Lost_User

  • Joined: 22 Jun 2006
  • Posts: 0
  • Status: Offline
Reply with quote Post Posted: Mon Aug 01, 2005 22:14
you can try using different dtds.

xhtml transitional instead of strict...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">

View user's profile Send private message
 

Page 1 of 1

post new topic Post new topic    Reply to topic Reply to topic

Display posts from previous:   

Powered by phpBB. © 2001, 2006 phpBB Group & Logo Design