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
vertical menu spacing
Old 03-31-2007, 05:16 PM vertical menu spacing
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
hey everybody,

I have a problem I can't seem to figure out.

I am trying to create a vertical menu that i am putting over some images.

How do i control the space between the links?

i don't have the files online yet, but there are arrows that i'm trying to line up with the links.

The top one does, but the rest don't line up.

any help would be greatly appreciated.

thanks !!!
bigfreak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-31-2007, 10:26 PM Re: vertical menu spacing
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
Can you give some code or a screen shot? It would depend on how your menu is coded. Are you using an unordered list? More info would be helpful.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 04-01-2007, 11:50 AM Re: vertical menu spacing
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
How are you creating the menu ? Are you using an unordered list ?? If not, that is the usual method for creating that type of menu. You can then control spacing between the menu items using margin and padding. You can put the graphic in as a background on the <li> elements, or on the <a> if you want a roll-over effect.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-01-2007, 01:40 PM Re: vertical menu spacing
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
here's the code in my css...

#sidenav { height:175px; width: 100px; top:228px; left:60px; }
#sidenav a { text-decoration: none; color: #133463; font-size: 11px; font-weight: bold; }
#sidenav a:hover { color:silver;}
#sidenav span { color: white; margin: 0 0; }

i have the main background image as a big file, which has the arrows in it.

i'll try to put a screenshot up as well.
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 04-01-2007, 02:05 PM Re: vertical menu spacing
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
here's what i have. I know, i can probably do it differently, but here's what I can do.

www.insiteci.com/sample/windsor

thanks!!!

Last edited by bigfreak; 04-01-2007 at 02:17 PM..
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 04-01-2007, 03:12 PM Re: vertical menu spacing
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Well, the first thing I would suggest is to ditch the absolute positioning for everything, that is not necessary and will cause you other problems.

2nd suggestion - don't make the background one big image as you have done. I would make the header 1 image, then create the sidebar area using a tileable image that tiles vertically only.

For your menu, using paragraphs as you have is not a good solution. Try this instead:
#sidenav {
height: 175px;
width: 100px;
top: 225px;
left: 40px;
padding: 0px;
margin: 0;
list-style: none;

}
#sidenav li{
margin: 0;
padding: 0px 0;
margin: 0 0 14px 0;
}

#sidenav a {
text-decoration: none;
color: #133463;
font-size: 11px;
font-weight: bold;
}

<ul id="sidenav">
<li><a href="http://www.insiteci.com/sample/windsor/league.php" target="_blank">League</a></li>
<li><a href="http://www.insiteci.com/sample/windsor/schedules.php" target="_blank">Schedules</a></li>
<li><a href="http://www.insiteci.com/sample/windsor/sponsors.php">Sponsors</a></li>
<li><a href="http://www.insiteci.com/sample/windsor/canadians.php">2007 Canadians</a></li>
<li><a href="http://www.insiteci.com/sample/windsor/contact.php">Contact Us</a></li>
<li><a href="#">Links</a></li>
</ul>

You're going to have some problems getting the list to line up exactly because your background image is not consistent in spacing and since its purely a background graphic, it's not flexible. By making the arrow a background image on the <a> in the list itself, and using borders for the separating lines, you would make the whole thing more flexible.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-02-2007, 03:05 PM Re: vertical menu spacing
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
ok, now i just need to figure out what it is your saying here!

I get the concept, i just need to figure out how it works in my head!

thanks Lady!!
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 04:09 PM Re: vertical menu spacing
bigfreak's Avatar
Extreme Talker

Posts: 179
Name: Andy
Trades: 0
thanks, i figured it out!

Woooo!
bigfreak is offline
Reply With Quote
View Public Profile
 
Old 04-12-2007, 04:46 PM Re: vertical menu spacing
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Woo Hoo !! Glad you got it !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to vertical menu spacing
 

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