Re: problem importing style sheets
From what I have read and tried, the "@import" method of including
styles is not yet supported by any browser (I haven't tried IE 4 yet).
So that narrows your options to the LINK tag, and inline or <HEAD>
For the BODY selector, you need to change the property that you are
using -- it should be:
I've made that mistake myself. Don't assume that the attribute names
that we are accustomed to in HTML are the same for style sheet
Everything else appears to be fine. You did not include the code you
used for the <LINK> tag, so I cannot see if there is a problem there.
The tag I usually use looks like this:
<LINK REL="STYLESHEET" TYPE="text/css" HREF="directory/filename.css">
Hope this helps,
Asheesh Chowdhary wrote:
> I am having some trouble importing style sheets into my documents.
> The code is as follows:
> For the style sheet:
> background: #993300;
> font-family: Bodoni, serif;
> font-size: 30px;
> font-weight: bold;
> text-align: center;
> A:link, A:visited, A:active
> color: #fff;
> text-decoration: none;
> color: #cc1111;
> font: bold 50% Eurostyle, sans-serif;
> for the actual HTML file:
> <TITLE>CSS TEST 1</TITLE>
> <STYLE TYPE="text/css">
> @import HREF="test1.css";
> if I use the "link rel" command I get partial importation, but none of
> the colors show....I have tried with IE 4.0, Navigator 4.0 and
> Navigator 3.0 and had no success....something must be wrong with my
> method of import because when I put the style sheet directly into the
> HTML header, it works fine.....
> Any help would be appreciated
> Asheesh K. Chowdhary
> Technical Intern
> Virtually Everything, Inc.