View Full Version : using a single CSS to "skin" a website

01-05-2003, 05:25 AM
is it possible to use a single .CSS to "SKIN" a website so every page is using the same "styles" :confused:

01-05-2003, 05:33 AM
Yes...By calling on your external css file in your webpages, you may do just that. This goes in the head of every page:

<link rel="stylesheet" type="text/css" href="nameofstylesheet.css">

...and in your sheet don't put the <style> tags in:

.this {font:bold 12 verdana; color:white}
.that {font:normal 14 tahoma;color:red}
body {backgound-color:green}
td {text-align:center}

Now, you can change the appearance of your whole website by changing just the stylesheet. :D

01-05-2003, 05:34 AM
Do you mean the same way you can with links? If so, yes, my CSS has black in the background on every page with this in the CSS:

BODY { background-color:#000000 }

Is that what you meant?

01-05-2003, 05:37 AM
Yep...look again at my example...I ammended it to include the body backgound. :D

01-05-2003, 05:27 PM
thanks for the info...much appreciated... :)