Reputation: 449613
Can anybody think of a non-Javascript way to do the following:
I cannot see a solution without using JavaScript, but maybe somebody has a brilliant idea.
Upvotes: 1
Views: 8357
Reputation: 7
try this
http://www.doxdesk.com/software/js/fixed.html
also try to check position:relative; position:static; position:fixed;
Thanks freeweb.pk
Upvotes: -1
Reputation: 57169
I believe the following is not IE6 compatible, but works on all other browsers. With the bottom, you should also give it a top. Once you set the height, it will take precedence (I gave it a border so you can see it stretching):
<div style="position:absolute;top:150px;bottom:10px;width:100px;border:1px solid red;">
I'm stretched to the bottom
</div>
Upvotes: 2