Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

need help to add the bullets before the list tags in css

This is a discussion on "need help to add the bullets before the list tags in css" within the Web Page Design section. This forum, and the thread "need help to add the bullets before the list tags in css are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 11th, 2008, 17:05
Junior Member
Join Date: Nov 2007
Location: london
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
need help to add the bullets before the list tags in css

Hi need help to insert bullet points before my list tag to display the subcategories but can't seem to get it to work. I am not trying to insert any background imags but just trying to use the li:before tag and use the >> before the list tag. Does anyone know how to do this. Here is my html code:
PHP: Select all

 <div id="main">
    <
div class="adcolumn">
    <
ul>
    <
li class="category">
    <
h3><a href="#">Property for Rent/Share</a></h3>
    <
ul class="subCat">
    <
li><a href="#">Property Available – Rent/Share</a></li>
    <
li><a href="#">Property Wanted – Rent/Share</a></li>
    <
li><a href="#">Holiday Rental Property</a></li>
    </
ul>
    </
li>
</
ul>
    </
div
I need to add the bullets along side the li tags that are wraped inside the ul class subCat

Here is my css:
Code: Select all
#main .adcolumn{
    float:left;
    width:230px;
    margin-left:10px;
}

.adcolumn ul, .adcolumn ul ol {
margin:0pt;
padding:0pt;
}
.adcolumn ul li {
list-style-image:none;
list-style-type:none;
}
.adcolumn .category h3 {padding: 0 0 0.3em 0; font-size:1.2em;}
.adcolumn li {padding: 0 0 0.2em 0;}
.category h3 a {color:#3d8dc8;}
.category h3 a:hover {color:#333;}
.subCat a {font-size:1em; color:#999999;}
.subCat a:hover {color:#333;}
.adcolumn ul li ul { padding-bottom:2em;}
.subCat ul li:before {
    content: "\00BB \0020";
    }
Thanks,
Ket
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 12th, 2008, 20:26
CloudedVision's Avatar
Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,342
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Re: need help to add the bullets before the list tags in css

Please don't bump threads.

Use this. Don't quite understand your code though. li:before and content? Never heard

Code: Select all
.subCat ul li:before {
    content: "\00BB \0020";
list-style-type:disc;
    }
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox not displaying bullets correctly ashaffiliates Web Page Design 6 Aug 20th, 2008 15:08
[SOLVED] Bullets looking wierd. mcdanielnc89 Web Page Design 8 Nov 1st, 2007 18:41
IE7 bug: list bullets aligned to bottom MikeHopley Web Page Design 6 Sep 12th, 2007 20:56
Image bullets on unordered list Kobrakai Web Page Design 4 Aug 15th, 2007 19:27
ul bullets ivyholly Web Page Design 12 Jan 6th, 2006 03:21


All times are GMT. The time now is 18:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8