这是我以前没有经历过的事情,我的div高度不合作在CSS &正在抛出一个页面的整个流程。该div应该居中,960像素宽,约1000像素高& 150px的填充底部将其与页脚分开。Div高度被搞砸
网站链接:http://tinyurl.com/b8vvhgr
HTML
<div id="energyrating-desc">
<h1><span class="gray">Energy Audit Services</span></h2>
<img src="/nd/images/yellow-bar.jpg" width="960" height="2" style="padding-bottom:2px;"></img>
<p>According to the EPA Energy Star program, the average American household spends $1,500 annually on
energy bills - a number that may go up as much as 50% this year.
</p>
<br>
<p>Almost half of that energy goes to heating and cooling your home. Lighting and appliances represent about a
quarter of those costs. Each of us can take action today to reduce energy use at home, while still staying
comfortable.
</p>
<br>
<p>Let New Day Homes perform a top-to-bottom Energy Audit of your home to help determine the cause of any
problems you may be experiencing, help you gauge your home's energy efficiency, and recommend clear
steps you can take to reduce your energy bills.</p>
<br>
<p><b>Energy Audit</b></p>
<p>
Find out where you can save on energy costs by having a full energy audit done on your home.
</p>
<br>
<p><b>New home Certified Energy Ratings</b></p>
<p>
Performed for builders and home buyers.
</p>
<br>
<p><b>Ratings for Builder Tax Credit</b></p>
<br>
<p><b>Energy STAR Ratings</b></p>
<br>
<p><b>IECC-2009 Testing</b></p>
<p>
Blower door testing, insulation inspections, and pre-verification to meet the IECC-2009
Energy Code requirements.
</p>
</div>
CSS
/*Energy Description*/
#energyrating-desc {
padding-bottom: 150px;
width: 960px;
height: 670px;
margin-left: auto;
margin-right: auto;
}
我非常感谢你的帮助。
您发布正确的CSS - 但它不是任何地方在您的网站。 –
你的答案是你的CSS,但你已经定义它没有在你的css – defau1t
得到了问题修复,谢谢你们 - 我的一部分愚蠢的错误。 – Willard