Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help with border, not wrapping around body

Help with border, not wrapping around body

Locked

Views: 2,002

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
2 Apr 2009, 11:11 PM
#1
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Help with border, not wrapping around body

Hello all. I have been lurking this website for a while now. I usually find all my answers within the posts I search through but I can't seem to find the answer to an issue I have.

If you look at my website template you can see that the border doesn't wrap around the body. Instead, it stays all the way to the left and right side of the page, with the site centered in the middle. What code should I use to correct this?

site:

www.mongkongclothing.com/store

My code in the stylesheet:

/wrappers - page or section containers/
#mainWrapper {
background-color: #ffffff;
text-align: left;
width: 960px;
vertical-align: top;
}

#mainWrapperLeft {
width: ;
background-image: url(../images/borderleft.jpg);
background-position: top left;
background-repeat: repeat-y;
padding-right: 0px; /or whatever the shadow width is/
margin: auto;
}

#mainWrapperRight {
width: ;
background-image: url(../images/borderright.jpg);
background-position: top right;
background-repeat: repeat-y;
padding-right: 0px; /or whatever the shadow width is/
}

Thanks for the help!!!

2 Apr 2009, 11:17 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,643
Plugin Contributions:
0

Re: Help with border, not wrapping around body

Have you tried giving your extra containers a width?

2 Apr 2009, 11:21 PM
#3
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Help with border, not wrapping around body

Yes, I had them set for 7px and I still had no luck.

2 Apr 2009, 11:37 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,643
Plugin Contributions:
0

Re: Help with border, not wrapping around body

:blush: I meant give them the width of the mainwrapper plus the width of the borders.

CSS Tip: divs inherently expand to fill the space available.

2 Apr 2009, 11:41 PM
#5
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Help with border, not wrapping around body

Oh, lol. I am new to all this :laugh:

I will try that now.

Thanks!

2 Apr 2009, 11:42 PM
#6
tony_sar avatar

tony_sar

Totally Zenned

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

Re: Help with border, not wrapping around body

i think those two new divs are wrapping maninwrapper which i think they should be on their own

<div id="mainWrapperLeft"></div> <div id="mainWrapperRight"></div>
2 Apr 2009, 11:46 PM
#7
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Help with border, not wrapping around body

double post

2 Apr 2009, 11:47 PM
#8
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Help with border, not wrapping around body

Kim:

:blush: I meant give them the width of the mainwrapper plus the width of the borders.

CSS Tip: divs inherently expand to fill the space available.

It Worked!!! Thanks!!:D

2 Apr 2009, 11:49 PM
#9
mongkongclothing avatar

mongkongclothing

New Zenner

Join Date:
Apr 2009
Posts:
9
Plugin Contributions:
0

Re: Help with border, not wrapping around body

Ok, so my next question, haha

Is there a way to wrap a border around the left and right side of the body and a separate border around the left and right side of the header?