Support » Theme: Twenty Eleven » Left align header and content on every page

  • Resolved Kaelly


    I’m trying to edit a child of the Twenty Eleven theme and can’t figure out how to get the header and content left aligned. I have the “Agilent Technologies” spark image at the top left aligned, but everything else on the page looks centered.

    What can I enter into my style.css child theme to get everything (header text, header image, and all posts) to be left-aligned? Thanks so much!!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • To do what you asked for, put this in your child theme’s style.css just below the @import line


    but I would recommend not doing that, because actually it’s the logo at the top that is in need of fixing. The logo should be placed using css image replacement of site title.

    Also the html source is showing some <meta> tags inside <body> instead of <head>, the meta tags are of fb open graph, so I’m guessing that it’s an attempt to insert the logo for fb thumbnail or something, whatever it is, it’s wrong to see meta tag inside body.

    Thank you!!!! That’s exactly what I wanted–it’s now all left-aligned! But you are right, the logo at the top is a problem now. It’s still there, but it’s not clickable anymore.

    Can I edit the style.css to do as you say–place the logo using the css image replacement of site title? How would that code look?

    The clickability problem was there at the beginning too, but you couldn’t notice because you are using a wide screen computer.

    TwentyEleven is built responsive, so any customization should be tested in various screensizes ( down to 320px which is the viewport’s width of iphone portrait ). You don’t need to use the real devices, just resize your browser (width-wise), all the elements should be in good shape while scaling.

    To use the CSS image replacement of site title, first you have to remove that image from the html markup (along with the meta tags there that should be inside head as mentioned earlier), once that’s removed from the markup, put this in the childtheme’s style.css

    #branding hgroup{margin:0;}
    #site-title {
    background: url("") no-repeat scroll 0 0 transparent;

    All the above should get the look the way you want already.

    Awesome! It’s all left aligned now! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Left align header and content on every page’ is closed to new replies.