Topic: Introduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Cascading Style Sheets or .css
The css files tell the browser how to display information. Be it centered, bold, underlined or whatever.
Like our mail merge example from the Introduction to Templates, the .css tell the browser how and where to display the information.
site.css
This file contains the layout wrapper information for your template. This includes the header, content, and footer. It also includes main navigation bar styles.
sidebar.css
This file contains sidebar styles (if your template has a sidebar).
chat.css
This file contains styles for the chat window (nothing else).
forms.css
This file contains styles for the form fields and the actual forms. This includes text boxes, text areas, drop downs, etc.
homepage.css
This file contains styles for displaying elements on the homepage (nothing else).
content.css
Of the eight css files, content.css is the largest. It contains all content styles of your site. To include colors, fonts, backgrounds, and the layout of the content (not the site).
Near the bottom of this file you will find overrides for some of the custom pages (such as homepage). All the .css files are fully commented so if you're familiar with CSS, you should find your way around fairly easy. Even if you're not familiar with css, the comments tell you what the styles are for.
The Firefox browser has a Web Developer add-on that will help you find your style sheets and will tell you what the elements do.
In fact, if you edit all of the above css files properly, you will not even need to edit a single template file to change the look of your site.
Last edited by seeme101 (2009-04-26 12:52:48)
