CSS Question (1 Viewer)

cross5900

Blarg!
Local time
Today, 05:23
Joined
Mar 24, 2006
Messages
92
Can someone help me figure out how to make this work. I am wanting for each page I make to import my CSS file.

My current code:

<link type="text/css" rel="stylesheet" href="layout.css">

this works with every page that is located in the root directory with the CSS file present there.

What I am trying to do, is place the CSS file in a folder called CSS and have the pages import the file, the location would be ..\website\css\layout.css

Problem is I am not sure how to alter the code to do a @import layout.css.
Also, not sure if this will make a difference, this is for an intranet site and does not contain it's own domain.

If this was confusing, just let me know and I will re-word it. Thanks in advance.
 

pranavnegandhi

New member
Local time
Today, 15:53
Joined
Feb 16, 2007
Messages
7
To continue to keep your HTML files in the root and the css in one level deeper, you need to change your code to this -

<link type="text/css" rel="stylesheet" href="css/layout.css">
 

Users who are viewing this thread

Top Bottom