css alignment of <ul> [56k warn]

JavaScript and client side scripting.

Moderator: General Moderators

matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I would use absolute positioning, but relative to the header. So

Code: Select all

.header {position:relative;}
.nav {position:absolute;bottom:0;}
No need for separate stylesheets/conditional comments
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Oh yeah, whatever it is, I'm sure it's fixable with fully valid CSS. He's not doing anything that shouldn't be cross browser (I don't think). However I, personally, don't like to "read" CSS documents. Maybe if he gave small snippets or something...
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

matthijs wrote:I would use absolute positioning, but relative to the header. So

Code: Select all

.header {position:relative;}
.nav {position:absolute;bottom:0;}
No need for separate stylesheets/conditional comments
Agreed, I've used this a few times in the past, I'd prefer not using absolute at any time but, despite that it does come in handy when used properly :)
Post Reply