PDA

View Full Version : css question, How to set id css?


mampwamp2
08-30-2012, 07:14 AM
<div class="menu">
<ul id=nicemenu">
<li class=nicemenu2">
<a id="blue">News</a>
</li>
</ul>

How to set css for id "blue" here?
How about the below script? is that correct?

ul.nice-menu li a #blue{
font-size:17px;
}

Corrosive
08-30-2012, 12:24 PM
How about the below script? is that correct?


Nope.

Try...

ul#nicemenu li a#blue{
font-size:17px;
}

domedia
08-30-2012, 02:48 PM
mampwamp2, when you can differentiate between CSS classes and ID's, this becomes really easy :)