lemonyoshi
02-17-2003, 02:16 AM
I'm just getting started with style sheets and I'm very confused.
I found this on Lissa's website:
"The coolest thing about CSS is that you can link to an external style sheet, and this sheet can change the style (font size, color, link color, link hover etc.) on your whole Web site just by editing the one style sheet."
How exactly does this work? How can I do this?
http://www.lissaexplains.com/css.shtml#stylesheet
ambimuffin
02-18-2003, 02:01 AM
css can be very confusing, when doing it you should read the instructions seriously about 10 times jsut to make sure, otherwise you can spend hours playing around trying to fix a code when wll you have to do is add a ( here or there....
beleive me i know!!
nailsbykeri
02-18-2003, 02:55 PM
Hi:
I love using external sheets. You are right, it is very confusing, but I will try to explain.
You can make the pages of your website respond to CSS without having to put the actual CSS codes in all of your pages. The great thing about it is that when you need to change your color schemes on all of your pages or other things, you can do it by changing the code on just one "page" which you will create.
So, what you do is you open a text editor and make your css codes. Like this:
A:link
{ text-decoration: underline overline; color:00ccff }
A:visited
{ text-decoration: underline overline; color:00ccff }
A:active
{ text-decoration: underline overline; color:00ccff }
A:hover
{ text-decoration: underline overline; color:navy;height:0; cursor: crosshair }
There is no need to put the "<style type="text/css"> and </style>" tags in your css sheet. It will look like a notepad text file when you are finished.
When you save it, it must be saved like this: mycss.css or whatever.css
This will contain all of your css codes for your page. You can put table attributes into it or all kinds of things.
Now in the <head> section on each of your actual web pages, you must put the code:
<LINK REL=stylesheet HREF="mycss.css" TYPE="text/css">
Hope this helps.
Keri :-)