Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

    Have you tried giving your extra containers a width?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

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

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

    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.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

    Oh, lol. I am new to all this

    I will try that now.

    Thanks!

  6. #6
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default 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>

  7. #7
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

    double post

  8. #8
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with border, not wrapping around body

    Quote Originally Posted by Kim View Post
    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!!

  9. #9
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. remove border around around images (not image border)
    By Otha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Aug 2010, 06:03 AM
  2. Wrapping text around image, and borders not working in IE
    By timmyneal in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 11 Nov 2009, 08:49 AM
  3. Help with CSS border around Description
    By Redcinamn in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Sep 2009, 11:53 AM
  4. IE Compatibility - Text not wrapping around image
    By simon1066 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 May 2009, 04:19 PM
  5. Help with Main Image Border Wrapping around ImgLink Image
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Mar 2009, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg