Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

EXTERNAL STYLESHEETS

Before you start with Stylesheets

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 Design by Interspire