Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    101
    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
    21,991
    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,486
    Plugin Contributions
    12

    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
    21,991
    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 Products into a Kit
    By Balefire in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 20 Jul 2012, 01:21 PM
  2. Combining ZenCart with a CMS ??
    By pmask in forum General Questions
    Replies: 2
    Last Post: 10 Nov 2010, 11:21 AM
  3. Combining Stylesheets
    By fsicody in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 25 Aug 2009, 05:17 PM
  4. combining stylesheets?
    By ichigoblack in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2008, 10:40 PM
  5. combining 2 spreadsheets
    By spikebuck77 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Aug 2008, 03:43 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
  •