Div中心问题 [英] Div Centering Question
本文介绍了Div中心问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试创建模板(dwt文件),我需要一些反馈。 我是一个长期的FrontPage用户,我正试图忘掉一些与我无关的东西。 该模板将包含一个标题,其中包含一个徽标,一个包含
内容的正文和一个包含常规信息的页脚,因此我创建了一个标题,正文和页脚div。 包装器div的宽度约为850像素,主体div宽度为750像素。
如何将主体div居中?
Tony
解决方案
使用CSS居中:
Im attempting to create a template (dwt file) and I need some feedback. I'm a longtime FrontPage user and I'm trying to unlearn some things so bare with me. The template is going to have a header which will contain a logo, a body which will contain content and a footer with general info, so I created a header, body and footer div. The wrapper div is about 850 pixels wide and the body div is 750 pixels wide.
How do I center the body div?
Tony
解决方案
Centering using CSS:
这篇关于Div中心问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文