PDA

View Full Version : like a:hover but not.


chriskq
02-28-2006, 10:08 PM
is there anything like a:relase or a:press that can be used in css. or am i just think too 'flashed based'. still new to css.
so heres an example of my menu.
#topMenuWrap a {
display: block;
padding: 5px;
float: left;
border: 1px solid #000;
background: #F00;
color: #FFF;
font: bold 11px verdana;
text-decoration: none;
}
#topMenuWrap a:hover {
background: #993399;
}

ramandeep
03-01-2006, 09:05 AM
Hi, you can use

a:link {
}

a:visited {
}


a:hover { /*this effect is not shown in NN4.xx*/
}


a:active {
}

domedia
03-01-2006, 02:33 PM
chris, there's a basic different between onrelease etc in actionscript, and the CSS pseudo elements. In actionscript, they're triggers. Something will execute on onrelease or onclick, like in javascript. The CSS pseudo elements describes how the links should look depending on what *state* they're in, if the link has been visited, if it's currently active, of the mouse os hovering over the link.