Im currently making my website using css. I put all the css for each page in a separate style sheet e.g. index.html has index.css, contact.html has contact.css ect. Is this the correct way to do it? I read somewhere that all css should be put into one style sheet for quicker loading, but my site is quite big and there’s alot of css code.
Also, should I put the css for the header and footer in one separate style sheet this way I can edit in the future with out having to edit each individual style page.
Hope I explained this ok
Thank you
Page 1 of 1
Where to put css (how to organise)?
#2
Posted 24 May 2009 - 02:26 PM
It all comes down to personal preference.
As a rule, I have:
styles.css <-- layout and fonts etc
print.css <-- styling for when the page is printed
ie.css <-- Any IE specific styles
forms.css <-- Style specific to the contact forms. Only needs to be called on the one page (usually contact)
As a rule, I have:
styles.css <-- layout and fonts etc
print.css <-- styling for when the page is printed
ie.css <-- Any IE specific styles
forms.css <-- Style specific to the contact forms. Only needs to be called on the one page (usually contact)
#4
Posted 26 May 2009 - 04:57 PM
Scott S, on May 24 2009, 15:26, said:
styles.css <-- layout and fonts etc
print.css <-- styling for when the page is printed
ie.css <-- Any IE specific styles
forms.css <-- Style specific to the contact forms. Only needs to be called on the one page (usually contact)
print.css <-- styling for when the page is printed
ie.css <-- Any IE specific styles
forms.css <-- Style specific to the contact forms. Only needs to be called on the one page (usually contact)
In addition to that, i have a global.css which is for basic styling and layout that occurs on every page, and then a page/section specific style sheet for each individual section.
Share this topic:
Page 1 of 1
Help

















