/ Published in: HTML
Expand |
Embed | Plain Text
<!-- Original Code: http://www.howtocreate.co.uk/fixedPosition.html --> <!-- Snippet With Example: http://code.dreamincode.net/snippet370.htm --> <!-- CSS with support for IE --> <style type="text/css"> <!-- #fixme { /* IE 5.0/Win and other lesser browsers will use this */ position: absolute; right: 0px; bottom: 0px; } body > div#fixme { /* used by Netscape6+/Mozilla, Opera 5+, Konqueror, Safari, OmniWeb 4.5+, 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( ( -0 - fixme.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' ); top: expression( ( +0 - 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]--> <!-- HTML CODE FOR ACTUAL BANNER --> <div id="fixme" style="height: 120px; width: 100%;"> <!-- EDIT BANNER CONTENTS BELOW --> <div style="z-index: 5; background: url(http://home.dreamincode.net/images/catfish/catfish_tile2.gif); width: 100%; height: 120px;"> </div> </div>
You need to login to post a comment.
