quote:
Originally posted by chris
a:hover {color: #80c0c0; text-decoration:underline}
a:link { color: ##ff0000 }
a:visited { color: #ff0000 }
a:active { color: #ff0000 }
quote:
Originally posted by Mnjul
As for the A tag, It's always better to define
A:link, A:visited, A:hover{
blahblahblah
}
(Some say that A:active and A:focus are also needed, but I don't think they make differences )
"focus" is not a valid attribute/tag...(Oops, sorry. Thanks for the correction, Mnjul )
Also, "active" is different then link, visisted and hover....
"link": defines a not yet visited link when it is basicly shown without you hovering and/or clicking on it....
"visited": defines a already visited link when it is basicly shown without you hovering and/or clicking on it....
"hover": defines a link when you're hovering over it but not clicking it....
"active": defines a link when you click on it (when you hold down the mousebutton on it)....
There is also a certain
order for placing these attributes in your stylesheet if you define them individualy! The right order is: link, visited, hover, active...
like so:
<style type="text/css">
a:link {color: #FF0000}
a:visited {color: #00FF00}
a:hover {color: #FF00FF}
a:active {color: #0000FF}
</style>
PS: you don't need
; if you only use 1 line of definitions...
quote:
Originally posted by Jeronimo
Also you need to specify units for the font size really. Commonly used is pixels, but you can use % or ems values. Google them to find out what they mean. Sorry for trying to complicate your CSS
No, you don't. When you don't specify units the default "pt" (points) is used. And using "pt" is way better then using "px" (pixels)!!! Many people forget that not all people have the standard 92DPI setting for there monitor. People with big monitors have for example 150DPI. This mean that a pixel shown with 150DPI is much much smaller then when it is shown on 92DPI, so if you use "px" your font will be very small compared to what you intend to. If you use "pt" then your font will be measured in points, and points are always the same, no matter what DPI setting....
In short, try to realy avoid the use of "px"....
http://www.w3c.org/Style/CSS/
http://www.w3schools.com/css/
http://www.mozilla.org/catalog/web-developer/css/