开发者

min-height or sticky footer which is preferred idea?

开发者 https://www.devze.com 2022-12-28 05:50 出处:网络
If in content is too small in pages then it look odd . to show some space to make looks good which method would be better.

If in content is too small in pages then it look odd . to show some space to make looks good which method would be better.

min-height to #main-content or sticky footer, which is preferred 开发者_开发百科idea?


Depends on your audience and content. min-height isn't fully supported by all browsers, but there are ways around that.

The bottom line is that you need to make your website work for your content, not the other way around. If certain pages don't have very much content, you should consider consolidating pages or coming up with more creative ways to display the content.

To bluntly answer your question, a sticky footer unnecessarily takes up valuable screen real estate. Unless there is important content in your footer, I would apply a min-height your #main-content.

0

精彩评论

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

关注公众号