English 中文(简体)
传真/CSS Beginner - placeing divs
原标题:HTML/CSS Beginner - positioning of divs
  • 时间:2011-11-22 16:44:53
  •  标签:
  • html
  • css

我的布局存在问题。 我有内容,希望扩大案文。 在底部,有一片 d,应该有一些接触信息。

我的问题是: 我可以指出,如何使内容变得更大,而不与我的底层四分五裂。 我尝试过间隙和婚礼,但我看不出工作。

感谢任何帮助。

我继承了《巴塞宾法典》,因此这个职位太长了。 A fiddle:

CSS: http://pastebin.com/7ztPs253
HTML: http://pastebin.com/YBqJJs3g

最佳回答

回答是,你需要使用<代码>clear:两者兼有。

#bottom{
    border: 1px solid gray;
    font: 12px Helvetica, sans-serif;
    padding: 5px;
    background: white;
    text-align: center;
    clear: both;
}

这将防止浮动标记<代码>div tags重叠。

增订本

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签