Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Padding in center box

Padding in center box

Locked

Views: 819

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 May 2010, 9:59 PM
#1
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Padding in center box

I've spent way too much time trying to solve this on my own, so I'll just post the question. How do I add some left and right padding to the overall content area of the center box? As you can see at http://classicreissues.com/store/index.php?main_page=index&cPath=2 , I desperately need some left and right padding.

Thanks in advance for your help.

Vito

8 May 2010, 10:18 PM
#2
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Padding in center box

add this to end of your stylsheet.css and see if this helps.

.centerColumn {
padding:0.8em 2em 0.8em 2em;
}

8 May 2010, 10:21 PM
#3
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Padding in center box

You're a champ, Tony. Thank you!

Vito

8 May 2010, 10:45 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Padding in center box

you welcome :smile:

10 May 2010, 7:58 AM
#5
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Padding in center box

Tony, I'm trying to add some additional content on the home page UNDER the centerboxes (eg featured products). So in includes/templates/custom/common/tpl_main_page.php, I added

<!--additional content below featured products--> <?php if ($this_is_home_page) { ?>

YOUR TEXT OR CODE

<?php } ?> <!-- eof additional content below featured -->

It adds content fine, but it is all severely flush left. Any clue how to make it obey the padding rule you gave me earlier for the center column?

Vito

10 May 2010, 8:19 AM
#6
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: Padding in center box

Aha! Never mind, worked it out. I just wrapped that additional code in one of these:

<div class="centerColumn"> </div>

:)

Vito