Giữ footer luôn ở bên dưới trang web


Các bạn xem rồi tự chuyển sang nhé!

Đây là hướng dẫn chi tiết http://youtu.be/_KxKee0i9wc

html, body
{
height: 100%;
}

#container
{
position: relative;
min-height: 100%;
}
#header
{
height: 100px;
}
#content
{
padding-bottom: 300px;
}
#footer
{
position: absolute;
height: 300px
}
<div id=”container”>
<div id=”header”></div>
<div id=”content”></div>
<div id=”footer”></div>
</div>

Advertisements

Để lại comment đê!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s