Need help with centering in WordPress TwentyEleven Theme

Discussion in 'Graphics & Webdesign' started by jensen, Oct 11, 2012.

  1. jensen

    jensen Active Member

    Messages:
    1,166
    Likes Received:
    21
    Trophy Points:
    38
    2011Theme_WP.jpg

    Am trying to figure out how to make the GetResponse sign up page to be in the center.
    It looks weird but am not able to make it stay in the center.

    Any suggestions?
     
  2. fretwizz

    fretwizz Member

    Messages:
    106
    Likes Received:
    3
    Trophy Points:
    18
    One way is to put it in a div that has a specified width and use margin:0 auto;
     
  3. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy Points:
    63
    There shouldn't be any need to add an extra div (or any other extraneous markup) — the element to be centred is already a block-level element. As such, it will happily take margin: 0 auto as-is.
     
  4. fretwizz

    fretwizz Member

    Messages:
    106
    Likes Received:
    3
    Trophy Points:
    18
    I guess i wasn't clear there ;) Of course you're correct, you don't have to add a div if you have a block level element to apply this to.
     

Share This Page