Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default css- combining into one sheet

    hello & happy holidays to everyone!!

    i have run into a problem and i want to make sure i do it right.

    first, i ran YSlow (firefox addon) it came up that i had too many css.

    i want to fix this problem and combine to one css sheet. so do i just put them all on one page?

    what would be the best way to approach this?

    thanks!

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: css- combining into one sheet

    Quote Originally Posted by PinkLeopard View Post
    hello & happy holidays to everyone!!

    i have run into a problem and i want to make sure i do it right.

    first, i ran YSlow (firefox addon) it came up that i had too many css.

    i want to fix this problem and combine to one css sheet. so do i just put them all on one page?

    what would be the best way to approach this?

    thanks!

    add any other stylesheet information at the bottom of stylesheet.css

    make sure you compare the declarations in the stylesheets in order to not override existing declarations that you may have edited in stylesheet.css

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: css- combining into one sheet

    Quote Originally Posted by PinkLeopard View Post
    hello & happy holidays to everyone!!

    i have run into a problem and i want to make sure i do it right.

    first, i ran YSlow (firefox addon) it came up that i had too many css.
    I'm not familiar with YSlow, but I am curious as to what it considers 'too many'.
    It also makes me wonder how many stylesheets you are actually loading.
    Quote Originally Posted by PinkLeopard View Post
    i want to fix this problem and combine to one css sheet. so do i just put them all on one page?

    what would be the best way to approach this?

    thanks!
    Putting them om one page will work, but like the style sheets themselves the order is important.

    Personally I'd recommend that all of the stylesheets supplied with zencart (and any modules) remain untouched. You should have a single .css file for your own customisations.

    Merging .css files runs the risk of such merging being lost the next time the module gets updated, or the need to re-merge with each update.

    Cheers
    Rod

  4. #4
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: css- combining into one sheet

    I've come across the message "too many stylesheets" when checking site speed. I thought about combining them but realized it would more than likely cause big problems.
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  5. #5
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: css- combining into one sheet

    Thanks everyone. I have decided to keep it as it is.

 

 

Similar Threads

  1. Combining Products into a Kit
    By Balefire in forum Setting Up Categories, Products, Attributes
    Replies: 27
    Last Post: 25 Aug 2015, 06:15 PM
  2. Combining CSS
    By NBordeau in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Jun 2010, 05:35 AM
  3. combining css/js files
    By damiantaylor in forum General Questions
    Replies: 2
    Last Post: 6 Apr 2010, 08:36 PM
  4. UPS shipping problem, it is combining different products into same box
    By bminca in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 3 Nov 2009, 04:39 PM
  5. Issues with css sheet changes
    By mw4kids in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Apr 2009, 08:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg