Once you determine the design structure your site you can create a stylesheet .
CSS allows you to control the document’s appearance through a compartmentalized section of declarations that format the page, or site, to your specs.
There are (3) different types of stylesheets:
Each us used for a specific purpose and affects the site in a particular way the you’ll learn about in the next few sections.
First, before you create you stylesheet, you want to declare that the webpage is connected to CSS
This defines the following styles as being only specific to CSS.
How External Stylesheets work:
External StyleSheets are documents that hold all of the declarations in one convenienct area. They are noted by the .css extension and contain no HTML. External Stylesheets can reside in the root directory of a site, or in specific folders.
This is a basic text file that simply houses all of the CSS declarations and information notes about those declarations. When you point the reference to the .css file it will automatically be picked up by the browser to command the layout tasks. This goes back to when we discussed how the layout and style of the web page are now separate entities brought together by the browser rendering.
The Webpage is liked through a <link rel=”stylesheetname.css”> command. When the page is called by the browser it locates the .css file and formats the page according to the declarations in the stylesheet.
This is the top level stylesheet in the hierarchy of stylesheets. It can control the layout of 1 site, or multiple pages, or an entire site.
Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License