467,161 Members | 1,041 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

Spanning directories and .css files

Howdy,

Hopefully I can explain what it is I am trying to do without to much trouble.

I have a directory within my "public_html" that contains my style
sheets. It's called CSS.

I am using the following to import the style sheets into my web pages:

@import url(CSS/filename.css);

I want to put the files that I creat into various sub-directories so
that I can have some sort of organization and not have files all over
the place like I have now.

How do I make the import line above reflect where the css files I want
to import are? Do I have to use the full path? Let me explain, if I
have a sub directory in my public_html directory what path would I use
to have it reflect like I do above?

I hope that makes sense.

TIA,

Pete

Apr 19 '07 #1
  • viewed: 1249
Share:
1 Reply
On 19 Apr, 11:43, prt7u <p...@Virginia.EDUwrote:
@import url(CSS/filename.css);
How do I make the import line above reflect where the css files I want
to import are?
@import url(/CSS/filename.css);

Works from anywhere.

I'd also suggest dumping @import in favour of <link>, but that's just
a coding style thing.

Apr 19 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tum | last post: by
4 posts views Thread by Grant Harmeyer | last post: by
2 posts views Thread by Sher | last post: by
4 posts views Thread by rn5a@rediffmail.com | last post: by
1 post views Thread by rn5a@rediffmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.