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.

Super<br />

brain<br />

power<br />

?This is a special brain power; so special that we’re going to let<br />

you think about it between chapters. Here’s what you need to do:<br />

1 Open the file “lounge.html” and locate the elixirs .<br />

2 Move the entire elixirs section to the top of the<br />

file so it’s just below the paragraph that contains the<br />

lounge logo.<br />

3 Save and reload your page. What changed?<br />

4 Open the file “lounge.css”.<br />

5 Locate the “#elixirs” rule.<br />

6 Add this declaration at the bottom of the rule:<br />

float: right;<br />

STOP! Do this exercise before going<br />

on to the next chapter!<br />

7 Save your file, and reload the page in your browser.<br />

What changed? What do you think this declaration does?<br />

divs and spans<br />

you are here 481

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

Saved successfully!

Ooh no, something went wrong!