| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2007
Posts: 6
|
question about horizontal css list navbars
currently, i'm trying to get a horizontal css navbar working, and i'm having problems the li tags are styled as display:inline, and as far as I know, you can't set a height for inline elements, right? so how do i set the height of a css navbar without fidgeting with the margins? |
|
|
|
|
|
#2 (permalink) | |
|
Senior Member
|
Quote:
Just quickly typed that up, but it SHOULD work. |
|
|
|
|
#4 (permalink) |
|
Come on IE - GO GECKO!
Join Date: Jan 2007
Location: Wasilla, Alaska
Posts: 93
|
yep...unfortionatley you do! On another note - do you have the "Web Developer" plugin for firefox. It makes situations like this really easy. It allows you to make changes to the CSS within the browser and it automatically updates it. -- Greg |
|
|
|
#6 (permalink) |
|
Come on IE - GO GECKO!
Join Date: Jan 2007
Location: Wasilla, Alaska
Posts: 93
|
I think that it is the display settings - check out this site: http://www.quirksmode.org/css/display.html -- Greg |
|
|
|
#7 (permalink) |
|
SkyRocket Design
Join Date: Aug 2005
Location: Chichester
Posts: 538
|
Drewry version (remix)... #test ul { float: left; width: 100%; padding-left: 0; margin-left: 0; background-color: #036; color: #fff; } #test ul li { display: inline; } #test ul li a { float: left; padding: 0.2em 1em; background-color: #036; color: #fff; text-decoration: none; border-right: 1px solid #fff; } #test ul li a:hover { background-color: #ce4; color: #f90; } <div id="test"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> </ul> </div> that will work in Firefox |
|
![]() |