dtnpzghys01643322 2014-10-21 16:15
浏览 8

集中网站和徽标

I want my page's logo and articles to be in the center of the site. At the moment everything is on the left. I just can't make it work. For Example I tried to delete the wrapper and set margin-left:auto; margin-right:auto; in the logo's class. nothing works.

And for the posts i just don't know where to start. probably i would have to put everything in a container and make that central? (There should be three posts in a row, at the moment the theme stacks them up to the right screen border if you have a big screen)

Thank you so much.

EDIT: The Text align in the image class did the job. Thank you guys, question answered!

  • 写回答

3条回答 默认 最新

  • douhu2898 2014-10-21 16:17
    关注
    #logobild {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
    

    That will do it for you :) Your header takes up 100% of the space, so the content inside has no fixed dimensions to center against. The text-align value assists with that.

    评论

报告相同问题?