I created a CPortlet and I have a problem with the css.
I give a backround color that the <ul> does not take it ,it has a white color,why it does not take the colour of the class?
<div class="eponymousmenu">
<?php $this->Widget('application.components.menuEponymousWidget');
?>
</div>
menuEponymous view
<ul>
<li><a href="index.html" class="active">Home</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
[edit] I notice that the problem is that the a element does take the parent background color,what is wrong?
.eponymousmenu ul li a {
border-right:1px dashed #fff;
float:left;
margin:0;
padding:2px 5px 5px 15px;
font:normal 14px Arial, Helvetica, sans-serif;
text-decoration:none;
}
.eponymousmenu {
padding:5px 5px 5px 5px;
margin:0;
background-color: gray;
}
[edit2]I found it,inheritance problem