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
Equal Spacing in a DIV
Old 08-26-2009, 09:45 AM Equal Spacing in a DIV
Novice Talker

Posts: 10
Trades: 0
heelloo everyone!

i need some help with this navigation bar im working on, its a fixed width (and height) DIV box, and inside are around 8 or 9 links. I need them spaced equally between one and another.

[LINK 1 --- LINK 2 --- LINK 3 --- LINK 4 --- LINK 5 --- LINK 6 --- LINK 7]

how would i go about this in CSS? should i try UL / IL, or SPAN, or ... ?

anyway this is running off "Drupal", and that is my menu ^.
Those links in my navigation bar that i need spaced out would be the "primary links" as drupal would call them.

Thank you very much in advance!


illusionest
illusionest is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-26-2009, 09:52 AM Re: Equal Spacing in a DIV
StylaStyla's Avatar
Mad Man

Posts: 401
Name: Styla
Location: City of London
Trades: 0
add padding-left/right: Xpx; to the LI

so;
Code:
ul li {
padding-right:5px;
}
__________________
Freelance Graphic Designer not for hire
StylaStyla is offline
Reply With Quote
View Public Profile Visit StylaStyla's homepage!
 
Old 08-26-2009, 09:58 AM Re: Equal Spacing in a DIV
Novice Talker

Posts: 10
Trades: 0
will that not affect the first and last link as well? I want the very left and right links to be justified to the left and right correspondingly.

just wondering, i dont have the website with me so i cant test it now.
illusionest is offline
Reply With Quote
View Public Profile
 
Old 08-26-2009, 10:29 AM Re: Equal Spacing in a DIV
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
Standard compliant browsers will allow the use of first-child, etc. selectors.

http://www.w3schools.com/css/pr_pseudo_first-child.asp
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Reply     « Reply to Equal Spacing in a DIV
 

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 2.45662 seconds with 12 queries