开发者

embed a footer at the bottom of a div

开发者 https://www.devze.com 2023-03-01 02:41 出处:网络
How do i embed <div id=\"site-wrapper\"> <div id=\"footer\"></div> </div> to appear at the bottom of the div always .

How do i embed

<div id="site-wrapper">
   <div id="footer"></div>
</div>

to appear at the bottom of the div always .

#footer{
开发者_开发技巧 position:relative;
 height: auto;
 margin-bottom: 0px;
}


You need:

#site-wrapper {
  position: relative;
}

#footer {
  position: absolute;
  bottom: 0px;
}


#footer { 
position: absolute; 
bottom: 0px; 
}

Should work.

0

精彩评论

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