普通网友 2015-05-26 19:14
浏览 28
已采纳

如何摆脱我网站上的空白区域?

I'm having an issue with my website, on all of the pages of my site in the main body there is a white gap. This is my index.php page:

body {
  vertical-align: middle;
  margin: 0;
  background: url(flame_bg.png) no-repeat left top;
}
#bg_container {
  height: 500px;
  overflow: hidden;
}
#bg {
  width: 100%;
}
#content {
  position: relative;
  top: 0;
  padding: 60px;
  vertical-align: middle;
}
#content2 {
  position: inherit;
  top: 10px;
  padding: 60px;
  vertical-align: top;
}
<div id="content">
  <p>&nbsp;</p>

  <p>&nbsp;</p>

  <p>&nbsp;</p>
  <h1><span style="font-size:36px; color: #fd4000; font-family: 'Tahoma', Geneva, sans-serif;">Welcome, to Burning Chat</span></h1>

  <p><span style="font-size:24px; color=#fd4000; font-family: 'Tahoma', Geneva, sans-serif;">Whether you&#39;re browsing for a friend, or wanting to improve your business&#39; audience.</span>
  </p>

  <p><span style="font-size:24px; color=#fd4000; font-family: 'Tahoma', Geneva, sans-serif;">Burning Chat provides you with a sociable expierence to connect with your close ones wherever you are, and its free.</span>
  </p>
</div>


<div id="pageMiddle">&nbsp;</div>
<div id="pageBottom">&copy;2015 Burning Flame</div>

You can view the issue here: www.burningchat.tk

I also require the <p>&nbsp;</p> to lower the text on the page.

</div>
  • 写回答

2条回答 默认 最新

  • dongyunque2511 2015-05-26 19:20
    关注

    after inspecting the dom it looks like your #pageMiddle has a height of 1000px.

    in your stylesheet provide this:

    #pageMiddle{
      height:0;
    }
    

    that should do the trick.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧