View Full Version : Linking CSS to website? :__:


Rin
07-26-2005, 11:40 AM
hello!
I'm making my site http://www.freewebs.com/doujinshi/messing.htm
using div layers and I wrote a CSS so I could mess around with the scroll bars and font and all that other stuff CSS allows you to tinker with.

<html>
<head>

<title> work, please. </title>

<style type="text/css">
<!---
A:link
{ text-decoration: none; }

body
{background-image: url(http://www.freewebs.com/doujinshi/bg.jpg);}
background-color: #0074FF;
background-repeat: repeat;
background-attachment: fixed;

font-family: Comic Sans MS;
color: #000000 ;
font-weight: normal;

scrollbar-face-color : #0074FF;
scrollbar-highlight-color : #000000;
scrollbar-3dlight-color : #000000;
scrollbar-shadow-color : #000000;
scrollbar-darkshadow-color : #000000;
scrollbar-track-color : #000000;
scrollbar-arrow-color : #000000;

margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
}
-->
</style>
</head>

<body>
</body>
</html>



Unfortunately, after writing all of this, I don't understand how to link it to my page(s). How do I link my CSS to my website so that it changes stuff? If anyone knows, please hep me out.

arigato
--Rin

lefty
07-26-2005, 02:28 PM
You have two options: One is to put your CSS in the page itself, which it appears that's what you're doing (you'd put all your page info between the <body> tags).

Second, if you want your css in a seperate file, you can use an external stylehseet. Directions are here:
http://www.lissaexplains.com/css2.shtml#external

Rin
07-27-2005, 02:00 AM
Thanks! For some reason, I missed that page... :)

lefty
07-27-2005, 02:11 AM
hehe that's okay ;)