Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Space between left layout column and right content column

Space between left layout column and right content column

Views: 3,160

Results 1 to 7 of 7
20 Mar 2013, 9:39 PM
#1
eazy avatar

eazy

New Zenner

Join Date:
Jan 2010
Posts:
70
Plugin Contributions:
0

Space between left layout column and right content column

Hello, I have a site that has 3 columns, the left sideboxes are enabled, right sideboxes are as well. My problem is that all the content in the main content area is smashed right up againsed the right layout boxes without any space. How can I add space or "margin" in between?

20 Mar 2013, 10:02 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Space between left layout column and right content column

We can answer that easily if we can see it live.

20 Mar 2013, 10:06 PM
#3
eazy avatar

eazy

New Zenner

Join Date:
Jan 2010
Posts:
70
Plugin Contributions:
0

Re: Space between left layout column and right content column

I only have a local copy I hope this makes sense but basically the right side of the layout boxes is right up against the content of the site, I would like the bump the content of the site over to the right a bit so it isn't right up against the left side boxes.

20 Mar 2013, 10:30 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Space between left layout column and right content column

If you use FIREFOX with FIREBUG plugin, you can do "off-line" analysis of the displayed page - including revelation of the CSS elements, ID's and Classes in the displayed "page".

Then you can make offline adjustments to the CSS, committing your edits to the live CSS file when you are happy with the result.

20 Mar 2013, 11:14 PM
#5
eazy avatar

eazy

New Zenner

Join Date:
Jan 2010
Posts:
70
Plugin Contributions:
0

Re: Space between left layout column and right content column

Thanks I figured it was something with CSS. So using the developer tool it appears like <td id="navColumnOne" class="columnLeft" style="width: 190px"> is the column that has everthing smashed up against it. If i add padding to the right should this move things over?

20 Mar 2013, 11:35 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Space between left layout column and right content column

The sidebars have defined widths, and padding or margins will often push other elements out of place. Probably better to add padding or margin to the left side of the center content column, which just expands flexibly to fill what is left between the sidebars.

21 Mar 2013, 1:16 AM
#7
eazy avatar

eazy

New Zenner

Join Date:
Jan 2010
Posts:
70
Plugin Contributions:
0

Re: Space between left layout column and right content column

gjh42:

The sidebars have defined widths, and padding or margins will often push other elements out of place. Probably better to add padding or margin to the left side of the center content column, which just expands flexibly to fill what is left between the sidebars.

Thanks so much. That worked.