Linking to External CSS Files
 
Network Websites
Corporate website
Beautiful Clip Art
Fast Cars
Video Tiger
Fantasy Art
Beauty & Health
Tips & Tricks

Fast Loading Pages
Glowing Links II
Hide E-mail Address
Javascript Links
Link Colors
Marquees
Navigation
New Window
No Underline Links
Out of a Frame
Page Flash Effects
Preload Graphics Protect Graphics
Redirect Scrolling Javascript
Text Roll-Overs
Tooltip Links
[more tips...]

Tutorials
CSS
Colors
Forms
FTP
Image Maps
Meta Tags
Resources

Web Hosting
Counters & Trackers
Domain Names
Graphics
Web Page Design
Java Script
DHTML

 

Linking to External CSS Files

A major benefit of CSS is that you can create a style sheet for use not just with a single page, but throughout an entire site.

This external style sheet can be applied to a hundred different pages, without having to retype the information. Also, perhaps more importantly, if you want to change the appearance of your pages, you simply change one file, instead of making changes to all your pages.

To set up an external CSS file:

  1. Create a new file using any software that allows you to save as a text file.
  2. Type in your CSS codes. Don't include, however, any HTML tags or other content.
  3. Save the document as filename.css, where filename is whatever you wish to call the file, and .css is an extension to identify the file type (you don't have to use this extension; you can use .txt and it will still work).

Link to your external file:

Linking a CSS file affects the document just as if the styles had been typed directly into the head of the document. On every page that you want affected by CSS, insert the following code in the head:

    <HEAD>
    <LINK REL=stylesheets TYPE="text/css" HREF="filename.css">
    </HEAD>

CSS Tutorials

Sponsor

Hot Wedding Ideas

Advertise
Really affordable rates.
Feedback
Comments, suggestions?

 

 

home | tips & tricks | tutorials | tools | resources | contact | advertise
© 2000 - 2001 GT Media Inc. All rights reserved.