[thelist] simple html css question

{ schaapy } list01 at theparagon.org
Fri Jun 28 07:24:01 CDT 2002


> 1. Stick the css stuff in a tag:
>
> <a href="somewhere.html" style="color:grey;
> text-decoration:none">Your different link</a>
>
> 2. Make a class in the main style sheet:
>
> <style type="text/css">
> a.yourclass { color: blue; text-decoration: none; }
> a.yourclass:hover { color: grey; text-decoration: none
> ; }
> etc...
> </style>

I would use #2. The problem with using #1 is that you're keeping all your
style in your content which isn't really the point of upcoming standards.
However - it will work but it gets messy and odds are you might want to use
that same style down the road.

Even if you don't you have the problem of not being able to change all your
styles from just ONE global style sheet and now have to go back into your
code. This style might be one hundreds or thousands of pages by then -
meaning you're gonna have a long week.

Keep it simple and put it all in a global style sheet :-)

-----------------------
Aaron Schaap
www.theparagon.org




More information about the thelist mailing list