Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    8
    Plugin Contributions
    0

    Default Best way to start mod stylesheet?

    Hi all,

    Currently I am using the basic green/classic template to mod it.
    However personally I think its a pain in the b*tt to do it this way.
    Since, many ID's are missing in the standard CSS, such as #categoriesContent etc

    Now my question is, how is the best way to start modding the CSS?
    Is there some sort of basic CLEAN CSS template which can be used instead of this "not-so-good-green" classic template?

    Cheers to all!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Best way to start mod stylesheet?

    You're free to add any selectors you wish. We do not include every possible selector in the supplied stylesheets ... because doing so would make them hugely bloated. Including every possible style combination would make the stylesheet load time incredibly long and be a huge waste of resources on every page-load your customers experience. It's the KISS principle.

    Instead, we leave it up to you to add the selectors you need in order to define the styles you wish to apply to them according to your unique needs.

    If in your eyes it's "not-so-good", you're welcome to create your own from scratch. Or, use the supplied stylesheet as a base and customize from there.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Best way to start mod stylesheet?

    The best way to design is to start with an empty stylesheet and add only what your design needs.

    However, if you need a bit of a leg up, the stylesheet from the template_default/css folder would be a better place to start. It doesn't look very good, but that's not the point, you're supposed to change the colors, font-sizes, etc.

    DyByte is absolutely right when he says that a stylesheet with every possible ID and class would be bloated. It would also miss the point and fly in the face of emerging best practise in using CSS, where more emphasis is being placed on semantic markup whereby, where possible, we style meaningful XHTML tags in preference to proliferating IDs and classes.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Any way to start from scratch?
    By alisammeredith in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 30 Oct 2009, 02:46 AM

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