My post is in regards to http://www.thepostboard.net
I need to make the black box that is currently covering 100% of the viewport cover the entire page instead. You\'ll
The needs to be top: 0; left: 0; position: fixed; width: 100%; height: 100%; background-color: red; It will then stay within the viewport's dimensions and "travel" with the scrollbar. Edit: it will only cover the entire viewport if is styled to margin: 0; padding: 0; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
needs to be top: 0; left: 0; position: fixed; width: 100%; height: 100%; background-color: red; It will then stay within the viewport's dimensions and "travel" with the scrollbar. Edit: it will only cover the entire viewport if is styled to margin: 0; padding: 0; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
top: 0; left: 0; position: fixed; width: 100%; height: 100%; background-color: red;
It will then stay within the viewport's dimensions and "travel" with the scrollbar.
Edit: it will only cover the entire viewport if is styled to
margin: 0; padding: 0;