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.

Regards,
Ron
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: