Previous Message
Next Message

relative path to css file

Sent by Pringle, Ron on 17 March 2006 18:06

Jim wrote:
> Is there a shortcut for adding css file addresses to deeply 
> nested files? Do I need all those dots and slashes every time?
> <style type="text/css">
> /*<![CDATA[*/
> <!--
> @import url(../../../../myCSS.css);
> -->
>      /*]]>*/
> </style>

You could use an absolute path:

@import url(/directoryname/myCSS.css)

This is telling the browser to go to the root directory of the website
and follow the path to the file.

This is fairly OT for this list however.

css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Possibly related: