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
Help needed with CSS and multiple bulleted lists <ul><li>
Old 10-14-2008, 12:25 AM Help needed with CSS and multiple bulleted lists <ul><li>
Novice Talker

Posts: 6
Name: SLI
Trades: 0
I'm using an unordered list for the navigation and am now needing to use one on a page. If you view the source the text is an unordered list. At first the body text (in the middle) was just like the navigation, only 150px wide with the blue background. Now I'm trying to use id and class fields to distinguish between the two lists. Now the text is the correct width and has no background like I want but the bullets don't show up. I've played around with it for a couple of hours and am just having a brain fart. I know you can view the CSS on the site but here's part of the CSS file for the list (the navigation is "y" and the body text list is "x"):

Code:
a:link { COLOR: #336699; TEXT-DECORATION: underline; }
a:visited { COLOR: #800080; TEXT-DECORATION: underline; }
a:hover { COLOR: #0000FF; TEXT-DECORATION: underline; BACKGROUND: #FFFFFF; }
a:active { COLOR: #C0C0C0; TEXT-DECORATION: none; BACKGROUND: #FFFFFF; }

    ul,li,a { display:block; margin:0; padding:0; border:0;    }

    ul.y { width:150px; border:2px solid #9d9da1; background: #82B4D7; list-style:none; }

    li.y { position:relative; padding:1px; z-index:9; }
        
    a.y {    padding:2px; padding-left:4px; border:1px solid white; text-decoration:none; color: #eceae2; font-weight:bold; width:100%; /* IE */ }
        
    li>a.y { width:auto; }

    a:hover.y { border-color:gray; background-color:#ebe6d8; color:black; }
    
    li.folder a:hover.y { background-color:#ebe6d8; }
    
ul,li,a { position: relative; display:block; margin: 0; padding:0; border:0; }
ul.x { position: relative; list-style-type: circle; width: auto; }
li.x { position: relative; list-style-type: circle; width: auto; }
Thanks for your help!!

Last edited by Guest85; 10-14-2008 at 04:56 AM.. Reason: typo
Guest85 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2008, 12:39 AM Re: Help needed with CSS and multiple bulleted lists <ul><li>
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
If you want the bullets to show, drop list-style-type:none;. That's what you modify in the CSS to make the bullets go away when you restyle a list into a menu.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 10-14-2008, 12:45 AM Re: Help needed with CSS and multiple bulleted lists <ul><li>
Novice Talker

Posts: 6
Name: SLI
Trades: 0
So you mean change it in the CSS and like this?
Code:
ul,li,a { position: relative; display:block; margin: 0; padding:0; border:0; }
ul.x { position: relative; list-style-type: none; width: auto; }
li.x { position: relative; list-style-type: none; width: auto; }
or like this:
Code:
ul,li,a { position: relative; display:block; margin: 0; padding:0; border:0; }
ul.x { position: relative; width: auto; }
li.x { position: relative; width: auto; }
Either way it didn't work. LMK if you mean something else. Thanks!
Guest85 is offline
Reply With Quote
View Public Profile
 
Old 10-14-2008, 12:59 AM Re: Help needed with CSS and multiple bulleted lists <ul><li>
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Where you listed in your original post:

ul.y { width:150px; border:2px solid #9d9da1; background: #82B4D7; list-style:none; }

drop the list-style rule.

You should really check your HTML; there are numerous validation errors, most of which are coming from the use of deprecated code like font-face, bgcolor, marginwidth, etc. Those things are styled with CSS as well, not in the HTML. You're also putting naming multiple things with the same class name, which can mess with your syntax. I'd also strongly suggest dropping the table structure; there's nothing here you can't put together with more up-to-date coding.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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


Last edited by serandfae; 10-14-2008 at 01:06 AM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 10-14-2008, 01:09 AM Re: Help needed with CSS and multiple bulleted lists <ul><li>
Novice Talker

Posts: 6
Name: SLI
Trades: 0
I think you misunderstood. This ul.y goes with the navigation. In which, I don't want bullets. So this would be correct right?
ul.y { width:150px; border:2px solid #9d9da1; background: #82B4D7; list-style:none; }

The ul.x is for the body text and that's where I want bullets.

Thanks for the validation heads up. I know there are errors and I just haven't got to them yet. Was trying to figure out this bullet thing.

Thanks again man.
Guest85 is offline
Reply With Quote
View Public Profile
 
Old 10-14-2008, 01:27 AM Re: Help needed with CSS and multiple bulleted lists <ul><li>
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
If you give something a class name you use the name to specify your rules. For more specificity you can add the element and child elements like so:

.y {style rules}
.y ul{style rules}
.y ul li{style rules}
.y ul li a{style rules}

And again, wherever you want the bullets to show, don't use list-style:none; .

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to Help needed with CSS and multiple bulleted lists <ul><li>
 

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