HI guys,
I am of the understanding that there is only one stylesheet for the entire site, is this correct?
Cheers,
Brendan
HI guys,
I am of the understanding that there is only one stylesheet for the entire site, is this correct?
Cheers,
Brendan
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.
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
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.
There's a text file in includes/templates/classic/css that explain show Zen Cart loads stylesheets.
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.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?
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