简体   繁体   English

由于相对位置,HTML布局额外的间距

[英]HTML layout extra spacing due to relative positioning

I have uploaded an image on the following link which shows the layout of my html page. 我在以下链接上上传了图片,该图片显示了我的html页面的布局。 But I should stick to the following progress for making that layout(ie the fix ordering due to some restrictions and time problem). 但是我应该遵循以下进度进行布局(即由于某些限制和时间问题而导致的修复顺序)。

http://tinyurl.com/9rs9m5y http://tinyurl.com/9rs9m5y

The problem is the extra whitespace present below the content, which is arrived there due to the relative positioning(and yes I can't use absolute positioning too). 问题是内容下方存在多余的空白,由于相对定位,该空白到达了那里(是的,我也不能使用绝对定位)。 Is there any way to remove that whitespace? 有什么办法可以删除空白吗?

There is absolutely no need for position:relative in this layout. 在此布局中,绝对不需要position:relative You should be using FLOATS. 您应该使用FLOATS。 Your SEARCH should be part of the HEADER and not hacked-into position using relative positioning. 您的SEARCH应该是HEADER的一部分,而不是使用相对定位侵入位置。 The same goes for your right navigation. 正确的导航也是如此。

You seriously need to re-think your entire HTML structure. 您非常需要重新考虑整个HTML结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM