Re: CSS help

From: Date: Wed, 18 Jun 2003 13:03:28 +0000
Subject: Re: CSS help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151973@lists.php.net to get a copy of this message
On Wed, 2003-06-18 at 07:14, Angelo Zanetti wrote: > Hi guys sorry for the off topic post. > > i am not getting any success with Css @ the moment. > > What I need is basically a class in my CSS file that defines everything about A links. > > I have this class but it aint working (i know its wrong): > > .sideMenu { > > hover {color:white}; > visited {color: black}; > visited:hover {color:white}; > a:text-decoration : none; > > } > > should this be: > > .sideMenu{ > > a-hover color:white; > I'm not exactly sure what your tying to do, your example it too poor to accurately interpret but.... To define styles for the 'a' element with a class identifier of 'sideMenu': a.sideMenu:link,a.sideMenu:active,a.sideMenu:visited { color: #000000; text-decoration: none; } a.sideMenu:hover { color: #ffffff; } http://www.w3.org/TR/REC-CSS2/selector.html#link-pseudo-classes

« previous php.general (#151973) next »