I read somewhere that CSS Expressions were deprecated and shouldn't even be used. I had never heard of them and decided to take a look. I found a code example that kept a floating element in the same spot on the screen, even if you scrolled.
<html>
<style>
#fixed {
position:absolute;
left:10px;
top:expression(body.scrollTop + 50 + "px");
background:white;
border:1px solid red;}
</style>
<body>
<p id="fixed">Here is some text, which is fixed.</p>
<p>
[many times: "stuff <br/>"]
</p>
</body>
</html>
This reminded me of the sites that had the "share bars" and stuff at the bottom of their pages.
So...
- Is this how they are doing it?
- Is it alright to use Expressions in this situation?
- If not, what should I use?
- Are there any other interesting/helpful things that expressions can help with?