|
Posted by patrice.fiset@gmail.com on 10/05/28 12:01
Thank you guys,
Yeah CSS is crap, I found that template on a free template website. I
should learn grrrr.
I found a fix thought if I had id=current on the right li for this
page I get the gray.
<ul>
<li><a href="index.php"><span>Home</span></a></li>
<li><a href="about.php"><span>About Us</span></a></li>
<li><a href="contact.php"><span>Contact Us</span></a></li>
<li id="current"><a href="driving.php"><span>Driving Directions</
span></a></li>
<li><a href="floorplans.php"><span>Floor Plans</span></a></li>
</ul>
On Jan 28, 1:02 am, "rf" <r...@invalid.com> wrote:
> <patrice.fi...@gmail.com> wrote in message
>
> news:bc509700-7f69-4ace-a4e3-765b32876ae6@m34g2000hsf.googlegroups.com...
>
> > Hello, can someone good in CSS help me figure out how to set the
> > active color like the hover color for the top menu of this page.
>
> >http://www.westland-associates.com/properties/northpark/
>
> Further to what Els said:
>
> :active is not what you think it is. It is not the "current page", rather it
> is the currently active link. That is, for example, when the mouse button is
> currently pressed over the link, before the mouse button is released and the
> link is activated, resulting in a get to the server for the href mentioned
> in the link.
>
> http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes
>
> As Els implies, changing the colour of the "current" menu item is done
> server side.
>
> --
> Richard.
Navigation:
[Reply to this message]
|