开发者

How to make sidebars extend to 50px above the footer?

On this site that i'm working on: http://cacrochester.com. Is there anyway (CSS preferred but i'll use jQuery if i have to) to make the Upcoming events, and News, Views, and Prayer Requests extend all the way down 开发者_开发知识库to 50px above the footer?


Make the below div , abolute position to the partent div , and give bottom 0px; it will always stay in the bottom

#rightSidebar {
float:right;
margin:0 15px 0 0;
width:150px;
}

make a parent container for the rightsidebar and make the parent div position:relative if you don't want to do all these

with jquery get the offset off footer and give rightSidebar absolute postion and 50px top from footer.

If this doesn't help , let me know we can write the offset code

var offsetVal = $('#div');
  this offset will have top and left properties..
  offsetVal.top
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜