[thelist] CSS Limits?

Bob Haroche bharoche at usa.net
Thu Aug 30 11:51:50 CDT 2001


> You will all have seen those buttons that when you click onto a page, the
> button relating to that page is highlighted. Does anyone know if there is
a
> way to do this in CSS?


It's typically done with javascript to dynamically change a CSS style on
some event like mouseOver.

Without using javascript, the best I can think of is to set a different link
background color and text for the hover and active states.  Here's an
example:

.foo a:link {
 background : #ffffff;
 color : #996633;
 text-decoration : underline;
}

.foo a:visited {
 background : #ffffff;
 color : #996633;
 text-decoration : underline;
}

.foo a:hover {
 background : #7086C2;
 color : #FFFFFF;
 text-decoration : none;
}

.foo a:active {
 background : #7086C2;
 color : #FFFFFF;
 text-decoration : none;
}

--------

HTH.


Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
http://www.OnPointSolutions.com





More information about the thelist mailing list