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.

    评论

报告相同问题?

悬赏问题

  • ¥20 设计一款异域新娘的视频相亲软件需要哪些技术支持
  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解