Zen Cart Logo

Border around page

Locked

Views: 834

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Aug 2009, 11:10 PM
#1
ags131 avatar

ags131

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Border around page

I have added borders to my ZenCart install. I originally used tables but have converted to divs to make them easier to manage. I have noticed that when a wide image pushes the right column over it goes over the border. How can I make the border expand with the cart?

http://liquorkicker.com

CSS:

.Bsize{
overflow:auto;
}
.Bstyle {
	position:relative;
	width:auto ;
	display:block;
	float:none;
	text-align:center;
	border-width: thick;
	border-color: inherit;
	border-style: solid;
}
.WrapperSize{
	width:900px;
}
.R {
	border-color: red;
}
.O {
	border-color: #FF9900;
}
.Y {
	border-color: yellow;
}
.G {
	border-color: lime;
}
.B {
	border-color: blue;
}
.P {
	border-color: purple;
}

PHP in tpl_main_page.php

<div id="mainWrapper" align="center">

<?php //Begin Border ?>

<div class="R Bstyle">
<div class="O Bstyle">
<div class="Y Bstyle">
<div class="G Bstyle">
<div class="B Bstyle">
<div class="P Bstyle">
<div>
<?php // End Border ?>

There are seven /div tags right before the mainwrapper /div

28 Aug 2009, 2:43 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Border around page

Remove width:900px; from #mainWrapper. If you use a fixed size it wont expand with the content. Thats why its called fixed size.

28 Aug 2009, 2:55 PM
#3
ags131 avatar

ags131

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

Re: Border around page

The divs still dont expand. When i used tables it expanded. I was hoping to use divs so it would be easier to manage.