Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
New to CSS... how do I justify a horizontal menu?
Old 02-15-2010, 01:58 PM New to CSS... how do I justify a horizontal menu?
Junior Talker

Posts: 4
Name: Kris Hendershott
Trades: 0
I've just gotten into messing around with CSS, trying to change up the look of a blog at Wordpress. And I've run into something I just can't figure out.

http://hendersonbromsteadart.wordpress.com/

I want the menu under the header to be justified, with "HOME" to the left, "TRY US HERE" to the right, and the other links evenly spaced between the 2.

What I have in there so far is:

- - - - - - - - - - - - - - - - -

#nav {
width:910px;
border-top:1px solid #222;
border-bottom:1px solid #222;
float:left;
overflow:hidden;
clear:both;
position:absolute;
top:230px;
}

#nav ul {
list-style:none;
display:table;
margin:0 auto;
}

#nav li {
display:inline;
}

#nav li a,#nav li a:visited {
display:block;
height:2.5em;
line-height:2.5em;
color:#999;
text-decoration:none;
font-size:1.2em;
text-transform:uppercase;
letter-spacing:.3em;
cursorointer;
padding:0 em;
}

#nav li a:hover {
color:#b08b04;
background:#fff;
text-decoration:none;
}

#nav li.current_page_item a:link,#nav li.current_page_item a:visited {
background:#fff;
color:#b08b04;
cursor:default;
}

- - - - - - - - - - - - - - - - -

Can anyone help me out with that I need to change up to get this to work?

Thanks
Kris
HotShott is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-15-2010, 02:08 PM Re: New to CSS... how do I justify a horizontal menu?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Size the width and float the <li>s
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-17-2010, 09:04 AM Re: New to CSS... how do I justify a horizontal menu?
Junior Talker

Posts: 4
Name: Kris Hendershott
Trades: 0
Can you explain exactly what that means and how to do it?
HotShott is offline
Reply With Quote
View Public Profile
 
Old 02-17-2010, 12:03 PM Re: New to CSS... how do I justify a horizontal menu?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.cssplay.co.uk/menus/centered2.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-17-2010, 12:45 PM Re: New to CSS... how do I justify a horizontal menu?
Junior Talker

Posts: 4
Name: Kris Hendershott
Trades: 0
ok, I'm still confused. That link seems to show you how to center the menu, but I already have it centered. I need to know how to justify it.
HotShott is offline
Reply With Quote
View Public Profile
 
Old 02-21-2010, 08:54 PM Re: New to CSS... how do I justify a horizontal menu?
Novice Talker

Posts: 9
Name: Ivan Castellanos
Trades: 0
you intent to change the options in the menu often? Because if you dont, just use display: block on every button, and also float left; then you just play with the width of every button to make it look justify...
AltIvan is offline
Reply With Quote
View Public Profile
 
Old 03-05-2010, 03:43 PM Re: New to CSS... how do I justify a horizontal menu?
Junior Talker

Posts: 4
Name: Kris Hendershott
Trades: 0
yeah, I tried that. but with diff. browsers, sometimes the last button gets bumped to a second line, while it'll look fine in others.
HotShott is offline
Reply With Quote
View Public Profile
 
Old 03-05-2010, 04:13 PM Re: New to CSS... how do I justify a horizontal menu?
Douglife's Avatar
Extreme Talker

Posts: 218
Name: Douglas Montgomery
Location: Florida
Trades: 0
Consider using the "padding-left" attribute in CSS in the #nav area.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Douglife is offline
Reply With Quote
View Public Profile Visit Douglife's homepage!
 
Reply     « Reply to New to CSS... how do I justify a horizontal menu?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32967 seconds with 12 queries