04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

we need fixed positioning<br />

534 Chapter 12<br />

Hey, can we get a coupon on<br />

the site and put it right in<br />

customers’ faces so they can’t<br />

miss it? I’d like to offer one free<br />

coffee to everyone who clicks on<br />

the coupon, for a limited time,<br />

of course.<br />

Just the words we’ve been<br />

waiting for: “right in the<br />

customer’s face”<br />

Why? Because it’s going to give us the<br />

opportunity to try a little fixed positioning.<br />

What we’re going to do is put a coupon on<br />

the page that always stays on the screen, even<br />

if you scroll. Is this a great technique to make<br />

your users happy? Probably not, but work<br />

<strong>with</strong> us here... it is going to be a fun way to<br />

play <strong>with</strong> fixed positioning.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!