• http://www.aeon-strategic.com/

    I changed my headerimage from below the navigation and inside the container to hanging above the whole thing.

    But now I am not capable of having it in the center of the page.

    Any ideas?

    css

    #headerimage {
    float: center;
    position: relative;
    background: transparent url(img/header.jpg) no-repeat center;
    margin: 0 0px 5px 0px;
    height: 75px;
    width: 880px;
    }

    #header {
    clear: both;
    float: center;
    margin: 0px 0px 0px 0px;
    width: 450px;
    position: relative;
    }

    header.php

    <?php wp_head(); ?>
    </head>
    <body id=”section-index”>

    <div id=”header”></div>
    <!– end id:header –>

    <div id=”headerimage”>
    </div><!– end id:headerimage –>

    <div id=”navigation”>

    </div><!– end id:navigation –>

    <div id=”container”>

Viewing 2 replies - 1 through 2 (of 2 total)
  • float: center; doesn’t exist.

    What you need to do is change the margin of headerimage to auto:

    margin: auto;

    Peter

    Thread Starter aeon365

    (@aeon365)

    works, awesome! thanks! (i had copied the float center from another #. seems like somebody else did the same mistake before me)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘headerimage float center instead of left’ is closed to new replies.