W3C home > Mailing lists > Public > www-style@w3.org > April 1998

Re: i have little problem...

From: Jan Roland Eriksson <d.tek.jre@ebox.tninet.se>
Date: Wed, 08 Apr 1998 21:41:16 GMT
To: Luka Gerzic <stinger@opennet.org>
Cc: www-style@w3.org
Message-ID: <352febed.15981369@pop.tninet.se>
On Thu, 09 Apr 1998 22:23:44 +0200, Luka Gerzic <stinger@opennet.org>

> but there is little problem that i can't solve for now.. 8)
> how can i put my script in file (i.e style.css) with my setting's from
> html page?

In your <HEAD> ... </HEAD> section of the page, include something like
this (as snipped from one of my own pages)

<LINK REL=StyleSheet HREF="include/dtek-styles1.css" TYPE="text/css"
 MEDIA="screen" TITLE="Generic stylesheet for my web-site">
<STYLE TYPE="text/css" MEDIA="screen" TITLE="Change of background">
  BODY { background: url(graphics/rex-back.gif) left top fixed #FFFFFF }

The first <LINK... will cause a style aware browser to go out and look
for the file "dtek-styles1.css" and use the stylerules found there to
control rendering of your page.

Because there's a "nasty" bug in Netscape 4.0x making it resolve URL's
included in the css file starting from the "wrong" point, it's highly
advisable to keep any style rule that contains URL's for img's and
similar things in the <HEAD> ... </HEAD> section as described for BODY

Hope this helps a bit on the way :-)

Jan Roland Eriksson - d.tek.jre@ebox.tninet.se
Received on Wednesday, 8 April 1998 17:45:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:47 UTC