View Full Version : New to CSS
JimboS
10-17-2002, 03:59 PM
Can anyone give a very basic idea for how of how to link a CSS into html (completely new to this).
Lets just say for basic I simply wanted to turn all the text on every page red.
J
Revelle
10-17-2002, 05:15 PM
You insert the CSS code to link to your CSS file inbetween your
<HEAD>
<link rel="stylesheet" href="NameOfFile.css" type="text/css">
</HEAD>
---------------
For turning the all your words red with the CSS...
:: Download Topstyle ::
http://download.com.com/3120-20-0.html?qt=topstyle&tg=dl-2001
Easy thing to use.
If you need the codes to be done, gladly help but it'd be better if you tired first. Best way to learn.
Here's an example:
---------------------------------------
BODY {
color : #FF0000;
}
---------------------------------------
That would be used directly in your CSS file. Everything will be red. However, this will NOT work for any words within Tables.
Use:
---------------------------------------
TABLE {
color : #FF0000;
}
---------------------------------------
---------------------------------------
You can also apply STYLEs directly into your HTML codes:
---------------------------------------
<HEAD>
<style>
<!--
BODY {
color : #FF0000;
}
TABLE {
color : #FF0000;
}
//-->
</style>
</HEAD>
---------------------------------------
I'm not a pro, but I know how to get things. :D
Revelle
10-17-2002, 05:24 PM
Now, I re-read and perhaps you wanted the Background to be red too??
Add this either in the CSS file or within the STYLE:
-->
BODY {
background-color : #FF0000;
}
<--
Just a note, you don't have to have "red". You can have shades of red, darker lighter, etc. Any colour :) to a point of course.
There is a colour-safe palette for the web::
http://hotwired.lycos.com/webmonkey/reference/color_codes/
You can find references all over the place :>
W3C is the best place to look. They set the standards for everything RE the web and web publishing::
http://www.w3.org/
JimboS
10-18-2002, 02:01 PM
Thanks for the help - I am having a play with it now and I appear to be getting the effects I want.
Revelle
10-18-2002, 02:37 PM
surely and yep :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.