Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    help question MainWrapper Border Image?

    Hello,
    I've searched through the threads but cant seem to find my answer....

    I want to add unique left and right border images to the mainwrapper.

    This is how i would ideally like to see it and this is the zen cart i am currently working on. (dont mind the crazy footer layout- i'm working on that too....)

    I assumed that i would just specify border-left, border-right for the mainwrapper in the stylesheet but when i use this code: border-left: 20px url(../images/bleft.gif); it doesnt work.... i'm obviously doing something wrong.

    any suggestions or is there a better way to do this? thanks in advance :)

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: MainWrapper Border Image?

    While I have not attempted this - You could make an image that is transparent in the center section and is vertically repeatable and apply it as a background image to the mainWrapper and leave the image you have in the bottom. Slight adjustments might have to be applied for this to the width as I think that this will be diplayed inside of the mainWrapper over being outside.

    Alternatively, you can look at this sites home page and view the source for the dropshadow applied and I think that they used tables left and right.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: MainWrapper Border Image?

    good idea! I'll give it a shot.... thanks :)

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: MainWrapper Border Image?

    CSS doesn't yet have the capacity to use images for borders.

    If #mainWrapper is a fixed width, you can use a slice of background-image with left and right fringes and solid center, and repeat-y. With the transparent parts you need, it will actually have to be more complicated - you might best add another div just inside #mainWrapper, and ending just before #siteInfoLegal, to get the fringe to display well.
    You would do this in /includes/templates/your_template/common/tpl_main_page.php.
    Last edited by gjh42; 24 Aug 2007 at 09:53 PM.

  5. #5
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: MainWrapper Border Image?

    great tip! thanks! almost there... i added a new div & class but now everything is left aligned, i just need to tweak it a bit more and now fix the footer situation ...

    you guys are great! thanks xox

  6. #6
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: MainWrapper Border Image?

    any clues on how to center this guy now?

  7. #7
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: MainWrapper Border Image?

    i'm open for suggestions on how to address the footer issue too- right now it's just an image added to the footer file.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: MainWrapper Border Image?

    It is this in the css and most likely where you have it in the files that is the cause for the left alignment
    Code:
    #wrapperborder {
    margin: 0;
    	background-image: url(../images/wrapperbk.gif);
    	width: 782px;
    	align: center;
    	}
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: MainWrapper Border Image?

    I have just finished a zen customization for a client and this is how I set the border image.

    http://nothinfancyfarm.com/

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: MainWrapper Border Image?

    usernameone,

    Nice implementation and you might share this in additional specifics for the OP

    BTW I am sure that I am not seeing exactly what this is designed to look like owing to the fact that I do not have the "Trebuchet MS" font on my system.
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 How to get logo in mainwrapper instead of under mainwrapper
    By aurelius in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Aug 2016, 07:55 PM
  2. Adding image to mainwrapper
    By deesan in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Feb 2010, 10:33 AM
  3. Rounded Corner Border mainWrapper
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jul 2009, 01:43 AM
  4. #mainwrapper image
    By txscubarat in forum General Questions
    Replies: 6
    Last Post: 14 Apr 2009, 08:32 AM
  5. Can't get rid of border around mainWrapper
    By scott_see in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jun 2008, 06:56 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR