CSS Directory Help
Posted: 08 March 2008 12:12 AM   [ Ignore ]
Newbie
Rank
Total Posts:  1
Joined  2008-03-08

Wussup everyone,

I am creating a new site and would like to know how do you structure your directory with your .css file.

I would like to use only one .css file for my whole site so that I am not going into each folder and updating another .css file.

Currently I have many different folders in my directory and a personal .css file in each directory. Is there a way where I can incorporat it to just use one .css file for everything?

Thanks!

Profile
 
 
Posted: 17 March 2008 07:19 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  26
Joined  2008-03-05

You should create a dedicated directory where your css file will reside.
Then on each of your html pages call that 1 css file.
Example below:

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

If you have a lot of sub directories on your website you may want to call the full path to your css file to ensure that it will load correctly.

Example below:

<link type="text/css" rel="stylesheet" href="http://www.domain-name.com/styles/default.css" /> 

I Hope this explanation was helpful.

Profile
 
 
Posted: 28 October 2009 04:46 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  1
Joined  2009-10-28

6stringrazor…Thank you so much for the code..It really help me a lot…

regards,
cameron
Simulation prĂȘt

Profile