razaviv Posted March 5, 2010 Report Share Posted March 5, 2010 (edited) hello i have this code: <style type="text/css">#fixme { /* Netscape 4, IE 4.x-5.0/Win and other lesser browsers will use this */ position: absolute; right: 20px; bottom: 10px;}body > div#fixme { /* used by Opera 5+, Netscape6+/Mozilla, Konqueror, Safari, OmniWeb 4.5+, iCab, ICEbrowser */ position: fixed;}</style><!--[if gte IE 5.5]><![if lt IE 7]><style type="text/css">div#fixme { /* IE5.5+/Win - this is more specific than the IE 5.0 version */ right: auto; bottom: auto; left: expression( ( -20 - fixme.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' ); top: expression( ( -10 - fixme.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );}</style><![endif]><![endif]-->and in chrome it sticks the div in the bottom of page, even when scrolling, and in explorer not.someone knows why? Edited March 5, 2010 by rjy9aen2 Link to comment Share on other sites More sharing options...
real_illusions Posted March 5, 2010 Report Share Posted March 5, 2010 I would start by getting rid of all that so called CSS.I dont think anyone targets IE5.5 anymore, let alone netscape..those browsers are thankfully dead.Look up for CSS solutions for sticky footers in Google, there are a few out there that do a pretty good job. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now