Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Location
    Canberra, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Quick stylesheet question

    HI guys,

    I am of the understanding that there is only one stylesheet for the entire site, is this correct?

    Cheers,

    Brendan

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Quick stylesheet question

    Zencart installs two stylesheets by default - the main stylesheet and one for the CSS buttons.

    Many mods install their own.

    You can have (and Zencart will load) as many as you want, but you need to take care they don't conflict with one another, and you can style the whole site with just the main stylesheet.

  3. #3
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Quick stylesheet question

    And you can have a print stylesheet for turning off things like the sideboxes and large graphics, in case anyone wants to print a page of your site. And an IE-specific stylesheet for bug fixes maybe. And you can use Zen Cart's clever method of loading stylesheets to create page- or category-specific stylesheets so you can style a particular part of your site differently if you'd like.

    But yes, one stylesheet can do the whole thing, and usually there is only one main stylesheet.

    Rob

  4. #4
    Join Date
    Dec 2008
    Location
    Canberra, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: Quick stylesheet question

    Thanks guys.

    If you create your own style sheet...say "mystyle.css", where do you modify the code so that this sheet is used in lieu of stylesheet.css?

    Or is it easier to just modify the existing stylesheet.css and save as I go.

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Quick stylesheet question

    There's a text file in includes/templates/classic/css that explain show Zen Cart loads stylesheets.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Quick stylesheet question

    If you create your own style sheet...say "mystyle.css", where do you modify the code so that this sheet is used in lieu of stylesheet.css?
    Just be sure to remove or rename the stylesheet.css file. Renaming means removing the .css ending, since any .css file in the css folder can be used by ZC. So if you want to start fresh with mystyle.css, then rename the default one to stylesheet.old or something like that. Or just keep a copy of it locally and delete it from the server.

    As for which approach to take, I'd suggest using stylesheet.css as the basis of your template, since it contains so many basic things you'd need to duplicate anyway. But work on a copy and rename the original as said above.

    Rob

 

 

Similar Threads

  1. Stylesheet class...quick list for what's what on the page
    By AllofUs in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Aug 2008, 04:49 PM
  2. Stylesheet Question
    By bgroup99 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 11 Mar 2007, 11:46 PM
  3. Stylesheet Quick Reference Guide
    By Donethat in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Jun 2006, 06:01 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