Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-19-2010, 07:38 PM   PM User | #1
jcdevelopment
Senior Coder

 
jcdevelopment's Avatar
 
Join Date: Oct 2007
Location: Cowboy Nation
Posts: 2,171
Thanks: 173
Thanked 257 Times in 257 Posts
jcdevelopment will become famous soon enoughjcdevelopment will become famous soon enough
Keeping links from wrapping under bullet points

Currently i have a drop down menu with custom graphic bullet points. In the design it shows the link wrapping, but not under bullet. Is there a way to keep this from happening?

http://media.ebby.com/65/

hover over the first button to see what i mean.

Thanks for any help.
jcdevelopment is offline   Reply With Quote
Old 05-19-2010, 08:02 PM   PM User | #2
joerivanveen
New to the CF scene

 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
joerivanveen is an unknown quantity at this point
Not really clear

I don't exactly know what you mean. I can see the link is wrapping, placing the word "Series" on the same indentation as the custom ">" (on a Mac, Safari). If you'd like it to continue as in a usual list, your CSS list-style-position should be set to "outside".
joerivanveen is offline   Reply With Quote
Old 05-19-2010, 09:05 PM   PM User | #3
jcdevelopment
Senior Coder

 
jcdevelopment's Avatar
 
Join Date: Oct 2007
Location: Cowboy Nation
Posts: 2,171
Thanks: 173
Thanked 257 Times in 257 Posts
jcdevelopment will become famous soon enoughjcdevelopment will become famous soon enough
Well the link is wrapping, which is fine, but it goes under the bullet point. Here is the code, which i changed to outside:

Code:
#main_nav li ul li{
 clear:both;
 padding:10px 10px 10px 30px;
 list-style-image:url(../gfx/nav/carrot.gif);
 list-style-position:outside;
}
Yet the points are not showing up. I know i ran into this before but can't remember how to handle it.
jcdevelopment is offline   Reply With Quote
Old 05-19-2010, 10:37 PM   PM User | #4
joerivanveen
New to the CF scene

 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
joerivanveen is an unknown quantity at this point
I think this has something to do with the paddings and margins. Have you tried setting both to zero and altering them when needed? So in the body, or main_nav:
Code:
padding: 0px;
margin: 0px;
and in the li selector:
Code:
#main_nav li ul li {
padding:0px 0px 0px 30px;
}
You may also want to try using a margin instead of a padding.
joerivanveen is offline   Reply With Quote
Users who have thanked joerivanveen for this post:
jcdevelopment (05-20-2010)
Old 05-20-2010, 08:31 AM   PM User | #5
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
It is usually advisable to start your css with this code.

Code:
*{
margin:0;
padding:0;
}
It resets the browser(s) to zero.

Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.
effpeetee is offline   Reply With Quote
Old 05-20-2010, 09:16 AM   PM User | #6
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Some left margin, say margin-left:20px; will also be required for #main_nav li ul li to see the bullets.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 05-20-2010, 06:02 PM   PM User | #7
jcdevelopment
Senior Coder

 
jcdevelopment's Avatar
 
Join Date: Oct 2007
Location: Cowboy Nation
Posts: 2,171
Thanks: 173
Thanked 257 Times in 257 Posts
jcdevelopment will become famous soon enoughjcdevelopment will become famous soon enough
Quote:
Originally Posted by joerivanveen View Post
I think this has something to do with the paddings and margins. Have you tried setting both to zero and altering them when needed? So in the body, or main_nav:
Code:
padding: 0px;
margin: 0px;
and in the li selector:
Code:
#main_nav li ul li {
padding:0px 0px 0px 30px;
}


You may also want to try using a margin instead of a padding.
Brain fart i guess. I used margin instead. Thanks!
jcdevelopment is offline   Reply With Quote
Reply

Bookmarks

Tags
bullets, text, wrap

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:47 AM.


Advertisement
Log in to turn off these ads.