Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Styling individual sideboxes/column size by page

Styling individual sideboxes/column size by page

Locked

Views: 769

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Jun 2009, 7:27 PM
#1
nomad73 avatar

nomad73

New Zenner

Join Date:
May 2009
Posts:
4
Plugin Contributions:
0

Styling individual sideboxes/column size by page

Getting a little bit stuck on this one!

I need one or two of the sideboxes styled differently, and I've gotten a 'lil bit lost in the css.

I've used the template_default as my basis, and need to style the featured products sidebox for the main page (defined in the define pages editor).

Anybody got any pointers as to doing it without affecting the rest of them?

While I'm at it (tap yer foot while I'm asking...) is there any way to adjust the left and right column sizes dependant on page?

All answers gratefully received and payment via virtual beer :clap:

1 Jun 2009, 7:49 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Styling individual sideboxes/column size by page

Did you read the CSS_read_me.txt file in the template_default/css folder? It's not real clear, but it does address the style-by-page thing.

1 Jun 2009, 8:06 PM
#3
nomad73 avatar

nomad73

New Zenner

Join Date:
May 2009
Posts:
4
Plugin Contributions:
0

Re: Styling individual sideboxes/column size by page

Does the new stylesheet for the particular page overide the main style sheet?

2 Jun 2009, 12:04 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Styling individual sideboxes/column size by page

Yes. That's the whole point of the page- (or category-) specific stylesheet process.

But don't duplicate all the stuff you don't want to change; just put in the definitions that you want to change for that particular page. All the rest of the definitions will be read from stylesheet.css.

Rob

2 Jun 2009, 2:14 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Styling individual sideboxes/column size by page

And since the column/box widths are set in admin and output in the HTML source (which has highest styling priority), you will need to use !important in your stylesheet to override that.

width: 169px !important;