- From: Chris Wilson (PSD) <cwilso@MICROSOFT.com>
- Date: Fri, 12 Sep 1997 16:43:17 -0700
- To: "'GM Chenier'" <gchenier@cognita.com>, Asheesh Chowdhary <asheesh@everything.com>
- Cc: "'www-style@w3.org'" <www-style@w3.org>
@imports work fine in Internet Explorer 4, PP2 and later. As Hans de Jong wrote, the problem is the syntax is "@import url(myfile.css);". -Chris Chris Wilson cwilso@microsoft.com *** > -----Original Message----- > From: GM Chenier [SMTP:gchenier@cognita.com] > Sent: Friday, September 12, 1997 6:44 AM > To: Asheesh Chowdhary > Cc: 'www-style@w3.org' > Subject: Re: problem importing style sheets > > Hello: > > 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> > styles. > > For the BODY selector, you need to change the property that you are > using -- it should be: > background-color: #993300 > NOT > background: #993300 > > 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 > properties. > > 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, > > Glenn > > > Asheesh Chowdhary wrote: > > > > I am having some trouble importing style sheets into my documents. > > > > The code is as follows: > > > > For the style sheet: > > > > BODY > > { > > 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; > > } > > ADDRESS > > { > > color: #cc1111; > > font: bold 50% Eurostyle, sans-serif; > > } > > > > for the actual HTML file: > > <HTML> > > <HEAD> > > <TITLE>CSS TEST 1</TITLE> > > <STYLE TYPE="text/css"> > > @import HREF="test1.css"; > > </STYLE> > > > > </HEAD> > > > > 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.
Received on Friday, 12 September 1997 20:01:18 UTC