Need HTML help, please

Discussion in 'HTML & Website Design' started by maddie73, Jan 4, 2009.

  1. #1
    I have a Blogger blog (http://theconsummategardener.com), and I can't figure out how to center the header image. This is the code. Where do I put the "center" for the image? Thanks!

    /* Header
    -----------------------------------------------
    */

    #header-wrapper {background:url(http://i19.photobucket.com/albums/b172/debinflorida/blogger/cgheader2.jpg);
    width:800px; height:235px;
    margin-left: 0; margin-right: 0; margin-top: 0
    border:0px solid $bordercolor;
    }

    #header-inner {
    background-position: center;
    margin-left: 0;
    margin-right: 0;
    }

    #header {
    margin-left: 0; margin-right: 0; margin-top: 0;
    border: 0px solid $bordercolor;
    text-align: left;
    color:#ffffff;
    }

    #header h1 {
    margin: 0;
    padding-left: 10px;
    line-height:1.2em;
    text-transform:uppercase;
    letter-spacing:.2em;
    font: $pagetitlefont; display:none; /*<---Hiding blog title and description*/
    }

    #header a {
    color:$pagetitlecolor;
    text-decoration:none;
    }

    #header a:hover {
    color:$pagetitlecolor;
    }

    #header .description {
    margin:0 5px 5px;
    padding:0 20px 15px;
    max-width:800px;
    text-transform:uppercase;
    letter-spacing:.2em;
    line-height: 1.4em;
    font: $descriptionfont;
    color: $descriptioncolor;
    }

    #header img {
    margin-$startSide: auto;
    margin-$endSide: auto;
    }
     
    maddie73, Jan 4, 2009 IP
  2. iloveRP.com

    iloveRP.com Peon

    Messages:
    457
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this solution (just add top center after image as shown below). Let me know if it works.

    #header-wrapper {background:url(http://i19.photobucket.com/albums/b1...gheader2.jpg) top center;
    width:800px; height:235px;
    margin-left: 0; margin-right: 0; margin-top: 0
    border:0px solid $bordercolor;
    }
     
    iloveRP.com, Jan 4, 2009 IP
  3. szhang

    szhang Banned

    Messages:
    754
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the picture doesn't work btw
    html looks complicated
     
    szhang, Jan 4, 2009 IP
  4. maddie73

    maddie73 Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That didn't work. It's strange with the Blogger code, because there is always something, somewhere that messes it up.
     
    maddie73, Jan 4, 2009 IP
  5. maddie73

    maddie73 Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    what do you mean it doesn't work?

    Blogger HTML is always complicated. You have to leave most of the unnecessary code in to make it work. That's just the way it is.
     
    maddie73, Jan 4, 2009 IP
  6. maddie73

    maddie73 Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Here's the div code. Do I need to change this too?

    <div id='outer-header'>
    <div id='header-wrapper'>
    <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
    <b:widget id='Header1' locked='true' title='The Consummate Gardener (Header)' type='Header'/>
    </b:section>
    </div>
    </div>
     
    maddie73, Jan 4, 2009 IP
  7. carminx

    carminx Peon

    Messages:
    381
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    carminx, Jan 4, 2009 IP
  8. maddie73

    maddie73 Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    maddie73, Jan 4, 2009 IP