HTML and CSS Reference
Hey, can we get a coupon on the
site and put it right in customers'
faces so they can't miss it? I'd
like to offer one free coffee to
everyone who clicks on the coupon—
for a limited time, of course.
Just the words we've been
waiting for: “right in the
Why? Because it's going to give us the
opportunity to try a little fixed positioning.
This is the last kind of positioning we're
going to use in the chapter, so let's make it
fun. What we're going to do is put a coupon
on the page that always stays on the screen,
even if you scroll. Is this a great technique to
make your users happy? Probably not, but
work with us here…it is going to be a fun way
to play with fixed positioning.