Two common CSS problems I usually meet and solution
Footer need to be always at the bottom
Most of web applications have a footer. Footer is for your company or organization’s infomation, copyright, etc. And as its name, it need to be at the bottom. But somethime your body content is too short, your footer is still at the bottom of the page, but not the bottom of viewport. Like this
Solution:
HTML
CSS
Centering things
Following this article, you can center anything totally in CSS. The most common case is centering the unknown height and width element. And for short, this is the solution:
Centering things in CSS will be more easier if you use flexbox. flexbox is simple for centering.
Nhận xét
Đăng nhận xét