CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2004, 04:05 PM
helz helz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 365 helz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 45 m 38 sec
Reputation Power: 6
Good idea to split CSS into files for each section?

for my website, i'm going to be using some css for every page in it, would it be advisable to store the css for each page in their own file? or even better in the actual page itself?
if i put it all into one css file i'll end up putting bit spacers:
/*-=-=-=-=-=-=---=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-*/
to block things apart

Reply With Quote
  #2  
Old July 18th, 2004, 02:52 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
What's the point of using an external style sheet if every page is going to be different? Really, there isn't. What you should do is use an external style sheet that contains all of the style selections that are common to each page... like coloration, links, backgrounds, common classes... etc...etc.

For style selections that are specific to a page and ARE NOT being re-used, you could put them in the header of the page. But remember that the reason for an external or imported style sheet is so that you don't have to use repetitive code and bog down your website with a gazillion style selections.

Code:
<head>
<style>
/* Your style goes here */
</style>
</head>


Just think about it. Code that is going to be re-used more than once, should be put in an external style sheet, code that is going to be used once, should be place in the head of the document... it's very logical, just concentrate on not wasting space

Last edited by 1beb : July 18th, 2004 at 02:53 PM. Reason: [/code]

Reply With Quote
  #3  
Old July 18th, 2004, 08:31 PM
WebVandals WebVandals is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Osaka, Japan
Posts: 17 WebVandals User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 2 sec
Reputation Power: 0
Actually, there's another reason to always store your CSS externally: Search Engines. All those style sheets at the top of your page are just clutter to search engines. Get 'em out of there if you can -- same goes for javascript.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Good idea to split CSS into files for each section?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT