What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » CSS Stylesheet help

CSS Stylesheet help
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: CSS Stylesheet help
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/


This post was edited on 07-24-2004 at 03:21 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-24-2004 02:48 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CSS Stylesheet help - by chris on 07-23-2004 at 10:19 PM
RE: CSS Stylesheet help - by matty on 07-23-2004 at 10:22 PM
RE: CSS Stylesheet help - by Dane on 07-23-2004 at 10:32 PM
RE: CSS Stylesheet help - by Guido on 07-23-2004 at 11:28 PM
RE: CSS Stylesheet help - by Jeronimo on 07-24-2004 at 12:16 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 02:32 AM
RE: CSS Stylesheet help - by matty on 07-24-2004 at 04:01 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 04:06 AM
RE: CSS Stylesheet help - by Mnjul on 07-24-2004 at 04:13 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 04:33 AM
RE: CSS Stylesheet help - by Mnjul on 07-24-2004 at 04:48 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 05:01 AM
RE: CSS Stylesheet help - by Mippo on 07-24-2004 at 05:40 AM
RE: CSS Stylesheet help - by Mnjul on 07-24-2004 at 05:44 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 05:48 AM
RE: CSS Stylesheet help - by Mippo on 07-24-2004 at 05:49 AM
RE: CSS Stylesheet help - by Mnjul on 07-24-2004 at 05:52 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 05:56 AM
RE: CSS Stylesheet help - by fluffy_lobster on 07-24-2004 at 07:15 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 07-24-2004 at 09:59 AM
RE: CSS Stylesheet help - by fluffy_lobster on 07-24-2004 at 01:40 PM
RE: CSS Stylesheet help - by CookieRevised on 07-24-2004 at 02:48 PM
RE: CSS Stylesheet help - by Mnjul on 07-24-2004 at 03:07 PM
RE: CSS Stylesheet help - by fluffy_lobster on 07-25-2004 at 11:56 AM
RE: CSS Stylesheet help - by king_of_cool_kids on 08-01-2004 at 08:37 PM
RE: CSS Stylesheet help - by Jeronimo on 08-01-2004 at 09:07 PM
RE: CSS Stylesheet help - by CookieRevised on 08-01-2004 at 09:49 PM
RE: CSS Stylesheet help - by Jeronimo on 08-01-2004 at 10:14 PM
RE: CSS Stylesheet help - by king_of_cool_kids on 08-01-2004 at 11:04 PM
RE: CSS Stylesheet help - by Jeronimo on 08-01-2004 at 11:21 PM
RE: CSS Stylesheet help - by king_of_cool_kids on 08-07-2004 at 06:41 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On