Ready to get started?Download WordPress


Center something (2 posts)

  1. makta112
    Posted 2 years ago #


    I'm trying to center the top banner on my site.

    But I'm unable to do so.

    Here's the code I'm using now:

    #Topad {
        position: absolute;
        top: 7em;

    I've tried all these lines:

    #Topad {margin-left: auto;
    margin-right: auto;}

    In the HTML too:

    <div align="center">...</div>


    My site: http://geimaku.com

    Nothing seems to work. Help, please.


  2. Andrew
    Forum Moderator
    Posted 2 years ago #

    You cannot centre while positioned absolute (unless you manually do it for a certain window width)

Topic Closed

This topic has been closed to new replies.

About this Topic