Grow your CSS skills. Land your dream job.

[Solved] Centering Logo

  • # January 27, 2010 at 6:27 pm

    Okay. For some reason I can’t seem to get this logo to be centered in the top of site. I have a small logo that I want to center in the top of the site, and to be centered at all time, even if someone were to re size their browser.

    Related HTML Code:

    Code:

    Related CSS Code:

    Code:
    #logo { position: absolute }
    # January 27, 2010 at 6:36 pm
    Code:
    #logo
    {
    margin: 0 auto;
    text-align: center;
    }

    That should do Explorer (text align center) as well as the standard firefox, chrome etc etc

    Hope that helps! dave

    # January 27, 2010 at 6:57 pm

    Thanks Dave. However, that puts the logo directly on top of the content box, and to the left of the page-wrap as well. Plus I still need to insert the nav bar under it if that changes anything…

    # January 27, 2010 at 7:09 pm

    Nevermind, once again I feel like a loser. :lol:
    Fixed it. Thanks Dave.

    # January 27, 2010 at 7:32 pm

    But asking questions is the best step to winning :D

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".