[solved]splitting css. Good or Bad Idea?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mjrumble
Forum Members
Forum Members
Posts: 19
Joined: Tue Sep 15, 2009 7:59 pm

[solved]splitting css. Good or Bad Idea?

Post by mjrumble »

Hi just a quick note to see if anybody knows the answer to this little question.

Is it a good or bad idea to have more than 1 stylesheet if the  design needs it?

What I mean is. I am working on a project at the moment with the style sheet reaching 600 lines. I have a scrolling slidesshow, news, upcoming events to name a few. What I have noticed as I am going on with the template design is that the page takes longer to load, would splitting the css help. My template page is less that 100 lines around 90 so i don't think it is that and i have optimized the few graphics the page uses.

Any Ideas or opinions?
Last edited by mjrumble on Sun Oct 25, 2009 9:47 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: splitting css. Good or Bas Idea?

Post by RonnyK »

Personally I have split stylesheets all the time, to have it clearer which one to modify, and reuse them for second/third templates. So News gets his own stylesheet and when the other template uses News as well, that that stylesheet is attached..

Ronny
mjrumble
Forum Members
Forum Members
Posts: 19
Joined: Tue Sep 15, 2009 7:59 pm

Re: splitting css. Good or Bas Idea?

Post by mjrumble »

I have noticed that several templates spit the css code and it does make it lot of sense when you say it like that. It just lets you drop a style sheet for a menu into a news design faster. Thanks for that. Still learing and getting things.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved]splitting css. Good or Bad Idea?

Post by Dr.CSS »

Most slow page loads have to do with images that haven't been optimized for the web, there are a lot of optimizers out there and quite a few are free...
Post Reply

Return to “Layout and Design (CSS & HTML)”