...

View Full Version : make 1 list item different



esthera
10-28-2010, 08:45 AM
i have css for a list


#links ul
{

display: inline;
list-style-type: none;

margin-top:0px;
margin-bottom:0px;
padding:0px;
direction:rtl;
float:right;
width:655px;
}


#links ul li
{
border:#494949 solid 1px;
float:right;
list-style-type: none;
dir:rtl;
margin-top:2px;
margin-bottom:0px;

text-align:center;
padding-top:2px;
padding-bottom:2px;
width:90.5px;

}

#links ul li a
{
color:#9c9c9c;
text-decoration:none;
font-size:13px;

}

I would like to make the current page <li> a different style - a different background color and font color - what's the best way to do this.
do i have to make the li for that link have an id - and then how do I access just that id of the li to make it a different style

abduraooft
10-28-2010, 08:55 AM
I would like to make the current page <li> a different style - a different background color and font color - what's the best way to do this.Take a look at http://www.codingforums.com/showpost.php?p=605564&postcount=3

esthera
10-28-2010, 09:25 AM
ok i did

<li id=ac>


and then


#links #ac li
{
background-color:#9c9c9c;

}

why didn't this work ? what am I doing wrong?

dudeshouse
10-28-2010, 09:45 AM
Try:

#links li#ac

instead.

esthera
10-28-2010, 09:48 AM
thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum