CSS imports

They have: 1 posts

Joined: Apr 2006

Hi guys
For some strange reason the .css file is not importing correctly in my html page; The layout is all jumbled.

here's my import statement for the html page.

@import url("css/general.css");
@import url("css/sectionfront.css");

- The global.css controls the overall color and font size for the entire site.
- I made certain that the file path was correct.
- Do i need to put the above statement at the top of my .css files (general/sectionfront).

What am I missing here?

Thanks in advance!!!

demonhale's picture

He has: 3,278 posts

Joined: May 2005

i guess you can try and make it all linked this way...

Busy's picture

He has: 6,151 posts

Joined: May 2001

Make sure the .css files are where you say they are.

The global.css being in the root (main) folder
general.css and sectionfront.css being in the css folder

If you are using a subdomain or up a level or two you may have to add a slash in front of it or even ./ or ../ depending how far up you are

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.