Forums / Templates, Stylesheets, Page Layout / Best way to start mod stylesheet?

Best way to start mod stylesheet?

Locked

Views: 1,960

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
9 Oct 2007, 12:07 PM
#1
lummi avatar

lummi

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

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!

9 Oct 2007, 3:27 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

9 Oct 2007, 3:38 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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)