Hello,
I'm relatively new to CSS, and would appreciate if you could help me out!
I have a CSS rule to render all bullets in my page with a different icon, including on the sidebars.
But there's a single list (a secondary navigation block) where I do not want any bullets. I am trying to override it, but am unable to. I'd be glad if you could review my CSS and tell me where I'm going wrong.
Thanks a Ton!
Code:
/* ////////////// SIDEBAR STYLES ///////////// */
.sidebar li {
border-top:dashed #cccccc 1px;
}
.sidebar ul li {
padding:0 0 0 1.5em;
list-style-type: none;
list-style-image: none;
background-image: url(img/menu-leaf.gif); /* Problems! */
background-repeat:no-repeat;
background-position: 0.3em 0.6em;
}
/* ////////////// NAVIGATION BLOCK ///////////// */
#navigation-secondary a {
display:block;
color:#ffffff;
}
#navigation-secondary a:hover {
background-color:#369; /* to change color when hovered over */
}
/* ////////////// try to override the bullets ///////////// */
#navigation-secondary , #navigation-secondary ul,
#navigation-secondary ul li, #navigation-secondary a {
list-style-type:none;
list-style:none;
}
ul.secondary-links li, ul.secondary-links ul li {
background-image:none;
border-top: none; /* this works though */
}
My html code snippet (rendered via php) is here
Code:
<div class="sidebar" id="sidebar-left">
<div id="navigation-secondary">
<ul class="links secondary-links">
<li class="menu-138 first"><a title="Link1 site" href="/link1">Link1</a></li>
<li class="menu-139"><a title="Link2 site" href="/link1">Link2</a></li>
<li class="menu-140 last"><a title="Link3 page" href="/link1">Link3</a></li>
</ul>
<div style="clear: both;"/>
</div>
Please help me out. Thanks!