html - Tricky sticky footer with sidebar -
i'm looking place sticky footer inside of content area of page full-height sidebar.
here copy of page i'm working on: http://www.lavenderstone.co.uk/stackoverflow/
i've worked http://ryanfait.com/sticky-footer/ many times in past, , method using %'s instead. twist problem i'm having there 100% height sidebar (green) , need footer (orange) @ bottom of content div (grey).
i can't place footer div @ bottom of parent div, nor can force sibling have 100% height minus hight of footer. i've tried both no avail.
i place footer right @ bottom of page, disrupt design of side bar. can help? i'm wanting resort javascript!
add style content-wrap element
#content-wrap{ height:100%; }
put footer element in content element , add style;
#footer{ position:absolute; bottom:0; }
Comments
Post a Comment