Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    94
    Plugin Contributions
    0

    Default Combining Stylesheets

    Hey Guys,

    I have the following stylesheets I want to combine:

    Stylesheet.css
    Stylesheet_tm.css
    StyleSheet_main.css

    To combine them do I just paste the codes of the other two style sheets into the stylesheet.css file?

    Thanks,
    Nick\

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Combining Stylesheets

    Essentially, yes. If there are any overlapping or conflicting rules, the last one will generally win, so check what selectors are in the various stylesheets and resolve any conflicts first. The stylesheets are loaded in alphabetical order, so you know how they are currently interacting.
    Even though fewer stylesheets is a good idea, it might make it more difficult to find some things if you have to search through a 3x-longer main stylesheet. On the other hand, it might be easier to have only one file to search for rules...

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Combining Stylesheets

    Quote Originally Posted by gjh42 View Post
    Essentially, yes. If there are any overlapping or conflicting rules, the last one will generally win, so check what selectors are in the various stylesheets and resolve any conflicts first. The stylesheets are loaded in alphabetical order, so you know how they are currently interacting.
    Even though fewer stylesheets is a good idea, it might make it more difficult to find some things if you have to search through a 3x-longer main stylesheet. On the other hand, it might be easier to have only one file to search for rules...
    Generally you dont search , you use firebug or IE developer tool kit to see which rules are being applied, and where they are defined.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Combining Stylesheets

    Or if you haven't implemented the developer tools, you search the stylesheet... and the longer the file is, the more lines you have to scroll through to get to them in any case.

 

 

Similar Threads

  1. Combining Attributes
    By michaelg in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Dec 2011, 03:02 PM
  2. Combining Stylesheets
    By autoace in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 May 2011, 02:28 AM
  3. Combining CSS
    By NBordeau in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Jun 2010, 05:35 AM
  4. Combining Stylesheets
    By fsicody in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 25 Aug 2009, 05:17 PM
  5. combining stylesheets?
    By ichigoblack in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2008, 10:40 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR