Including Files


Now this is really helpful. So far you have seen how to include styles per page. How about a style for an entire site? Well, the easy way to do it is to define your CSS styles in one file, and then include that file everywhere else. How do you include that file? There are two ways. The first one:
<HTML>
<HEAD>
<LINK rel="stylesheet" type="text/css" href="blah.css" title="my style">
</HEAD>
This will include the file "blah.css". See this example.

The second method:

<HTML>
<HEAD>
<STYLE type="text/css">
<!--
  @import url("blah.css")
-->
</STYLE>
</HEAD>
See this example.

Both methods essentially accomplish the same thing.


Previous Section
Pseudoclasses
Table of Contents Next Section
Layers