PDA

View Full Version : How does CSS work?


Juvat
08-17-2003, 12:35 AM
Can someone explain exactly how stylesheets work and how to use them?

jamessan
08-17-2003, 12:14 PM
Stylesheets are a way to seperate Content and Style when designing websites. A common way to do things is to have a seperate CSS file that defines all the styles you want to use and then have your website link to it. Then, if you want to change any of the styles, you can modify the stylesheet or even replace it with another one and the look of your website will change without having to actually modify the html. The World Wide Web Consortium (http://www.w3.org) is one of the best resources for information regarding (X)HTML (http://www.w3.org/MarkUp/) and CSS (http://www.w3.org/Style/CSS/) as they are the ones that came up with the recommendations.