[Webpro] CSS Quirk or Newbie Coder?

Jason Van Pelt jvanpelt at integralpro.com
Thu Jul 29 10:11:46 EDT 2004


Jeanne, 
	Try giving topnav "line-height: 0;" and that should clear it up.
The problem is the images (which are in-line elements) are aligned with
the baseline.  Imagine if you had some text in that div.  The images
would align with the bottom of the line of text, but there's the space
below to allow for letters like y g p q with descenders.  

	I would also recommend that you start using an xhtml strict
doctype.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I personally found that it made things much more consistent across
various browsers.

j.vanpelt




More information about the Webpro mailing list