Previous Message
Next Message

after two days, doctype matters...

Sent by Anthony on 6 March 2005 08:08


I just spent the last two days trying to figure out
why I couldn't get the correct padding/spacing in my
nested UL menu.

After finally debugging the example from listomatic I
narrowed it down to the doctype.

Maybe this is a rookie move, I've been developing
sites for 7 years, and haven't ever really needed a
specific doctype until now.

For the nesting to work properly in IE, you need to
have a doctype of:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Checkout the diff in IE vs. FireFox (both work fine in
FF, but in IE the 'not working' file is hosed).

http://stuff.chovy.com/html/leftnav/leftnav-working.html
http://stuff.chovy.com/html/leftnav/leftnav-not-working.html



Anthony
ph: (408) 656-2473
blog: http://www.chovy.com


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: