...

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



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

zoobie
01-05-2003, 04: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}
etc.

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

Kodiak
01-05-2003, 04: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?

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum