Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Side Box Header Help

    Change your

    Code:
    background: url(http://www.imperialgiftsnwares.com.a...homepage15.jpg) #669966;
    To:
    Code:
    background: url(../images/homepage15.jpg) no-repeat;

  2. #12
    Join Date
    Apr 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Side Box Header Help

    everything is driving me crazy
    it just won't happen for me
    my banner looks crap as it wouldnt load as a jpg so i had to change it to gif grrr and everything else i want to do wont work

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

    Default Re: Side Box Header Help

    You need to merge the new declarations with the existing ones, which requires juggling in a few places. There are existing properties which confilct with some of the new ones, and the existing ones need to be deleted. It is also good to consolidate properties into one declaration where possible.

    Here is a cleaned up version of what you posted. I can't guarantee it will do everything you want, but it should get you started.
    Code:
    /*sideboxes*/
    .columnLeft {}
    .leftBoxHeading, .rightBoxHeading {
        background: url(../images/top.jpg) no-repeat;
        border: none;
        padding: 0.5em 0.2em;/*or if you prefer, padding: 0.2em 0em;*/
        }
    .centerBoxHeading {
        margin: 0em;
        background: url(../images/homepage15.jpg) #669966;
        padding: 0.5em 0.2em;
        }
    .leftBoxContainer, .rightBoxContainer {
        background: url(../images/middle.jpg) repeat-y;
        border: none;
        }
    .sideBoxContent {
        background: url(../images/bottom.jpg) no-repeat bottom center;
        border: none;
        }
    h3.leftBoxHeading, h3.leftBoxHeading a, h3.rightBoxHeading, h3.rightBoxHeading a {
        font-size: 1.1em;
        color: #FFFF00;
        }
    h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover {
        color: #FFFF33;/*or #FF0000*/
        text-decoration: none;
        }

  4. #14
    Join Date
    Apr 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Side Box Header Help

    Thanks Geoff
    That worked yay!!!
    Its a bit messy it may be the images not lining up..hmm
    Thanks again

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

    Default Re: Side Box Header Help

    Now that I see what your bg images look like, I can advise where you need to put padding. To give the text some breathing room, modify .sideBoxContent to look like this:
    Code:
    .sideBoxContent {
        background: url(../images/bottom.jpg) no-repeat bottom center;
        border: none;
        padding: 0 .3em 1em .5em;
        }
    Adjust to taste.

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

    Default Re: Side Box Header Help

    Part of the choppiness is the fact that the top and middle images don't exactly match, so the main color breaks and the edges jump from one thickness to another.

    Part of it is that the top image is taller than the standard heading height, so the bottom of the swirl gets cut off. You can increase the padding on the heading so it expands to show more of the swirl, though that will push the content down by the same amount.
    Code:
    .leftBoxHeading, .rightBoxHeading {
        background: url(../images/top.jpg) no-repeat;
        border: none;
        padding: 0.5em 0.2em 2.0em;/*adjust as required*/
        }
    Alternatively, if the top swirl is tall, you can combine and stretch the top and middle images and make one image that is as tall as any sidebox you would ever have. Then you would eliminate any background in the heading and put the modified image in the container, where it won't matter how tall the heading is.
    Code:
    .leftBoxHeading, .rightBoxHeading {
        background: none;
        border: none;
        padding: 0.5em 0.2em;
        }
    
    .leftBoxContainer, .rightBoxContainer {
        background: url(../images/topmiddle.jpg) no-repeat;
        border: none;
        }

  7. #17
    Join Date
    Apr 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Side Box Header Help

    Thanks Glenn
    I will do that and see how it looks, one step at a time haha i'm so new to this but your help is so much appreciated

  8. #18
    Join Date
    Apr 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Side Box Header Help

    Hey Glenn
    When I open all the images in fireworks they do match up perfectly
    Is there something in the code thats pushing the top image right that little bit?

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

    Default Re: Side Box Header Help

    A standard stylesheet has this
    Code:
    h1, h2, h3, h4, h5, h6 {
    
        margin: 0.3em 3px;
        }
    which will shift h3 elements in by 3px.
    You need to explicitly override that for the sideboxes by adding margin: 0;:
    Code:
    .leftBoxHeading, .rightBoxHeading {
        background: url(../images/top.jpg) no-repeat;
        border: none;
        padding: 0.5em 0.2em 2.0em;
        margin: 0;
        }
    If it doesn't work here, put it in
    h3.leftBoxHeading, h3.leftBoxHeading a, h3.rightBoxHeading, h3.rightBoxHeading a {

  10. #20
    Join Date
    Apr 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Side Box Header Help

    Thanks Glenn
    Thats perfect your a legend

    I have some more questions if you have time to help?

    Can I have a background image in the centre box where it says Congratulations you have installed zen cart?
    I have 3 images for this aswell

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 13 Jun 2011, 04:22 PM
  2. Information side box in header
    By daveky in forum Basic Configuration
    Replies: 7
    Last Post: 4 Nov 2010, 08:57 AM
  3. Side Box Header Images
    By prettyeyes1 in forum Basic Configuration
    Replies: 2
    Last Post: 7 Mar 2010, 03:33 AM
  4. Side Box Header Images
    By KADesign in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 18 Dec 2008, 07:23 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