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