开发者

Website validates but does not render with HTML DocType

开发者 https://www.devze.com 2023-01-29 20:44 出处:网络
Hello I built a website for a graphic design company (www.brgdonline.com) and used thetag. The webpage will not show up at all in Chrome, Firefox, or IE. However, if I remove the doctype completely, i

Hello I built a website for a graphic design company (www.brgdonline.com) and used the tag. The webpage will not show up at all in Chrome, Firefox, or IE. However, if I remove the doctype completely, it shows up fine. I have validated the website using w3's validator and got no errors. I can see the source code just fin开发者_JAVA技巧e even when it doesn't render.

Thanks so much in advance.

RMS


The div with id #whole has height:100% and overflow:hidden. The height is set to 100% of body which has no height defined and therefore becomes 0. Remove height:100% and overflow:hidden from #whole and I think it will render again. alternatively give body and html a height:100% so they fill the whole viewport height.

0

精彩评论

暂无评论...
验证码 换一张
取 消