Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Tiling left and right background fixed center - header

    Trying to have left and right repeating background images and a fixed size center header image. Here's the relevent CSS. Any help greatly appreciated. (left bg is on top of center, and right is below...)

    Code:
    #container {
    height:100%;
    min-height:100%;
    height:auto;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    }
    
    
    #headercontainer {
    height:163px;
    width:100%;
    margin:0;
    }
    
    
    #headerleft {
    height:163px;
    width:30%;
    background-image: url('images/left_top_bg.jpg');
    float:left;
    background-repeat: repeat-x;
    }
    
    
    #header {
    height:163px;
    width:990px;
    background-image: url('images/rv_park_quartzsite_header.jpg');
    background-repeat: no-repeat;
    margin-left:auto;
    margin-right:auto;
    }
    
    #headerright{
    height:163px;
    width:30%;
    background-image: url('images/right_top_bg.jpg');
    background-repeat: repeat-x;
    float:left;
    display:inline;
    }[
    html header portion:
    Code:
    <div id="headercontainer"><div id="headerleft"> </div><div id="header"> </div><div id="headerright"> </div></div>
    Last edited by iwebdesign; 06-23-2010 at 06:38 PM. Reason: add code tags

  • #2
    New Coder
    Join Date
    Mar 2009
    Location
    Canada
    Posts
    66
    Thanks
    5
    Thanked 2 Times in 2 Posts

    I think this might help.

    I think the below code might help you. It's code I used to design my banner with. You might have to modify it a bit but I think this is what you are looking for.

    #A1000{
    background-image:url(../banner/3.jpg);
    background-repeat:repeat-x;
    height:90px;
    margin:0px;
    padding:0px;
    }

    #A1001{
    background-image:url(../banner/1.jpg);
    background-repeat:no-repeat;
    height:90px;
    width:310px;
    float:left;
    margin:0px;}

    #A1002{
    background-image:url(../banner/2.jpg);
    background-repeat:no-repeat;
    height:90px;
    width:300px;
    float:right;
    margin:0px;
    padding:0px;
    }
    My web site can be view here
    http://robinsden.com


  •  

    Posting Permissions

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