04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A close look at the elixirs X<strong>HTML</strong><br />

Alice sure has asked for a tall order, hasn’t she? She wants us to take the existing lounge<br />

X<strong>HTML</strong> and make it look like the handout menu. Hmmm... that looks challenging, but we<br />

do have <strong>CSS</strong> on our side, so let’s give it a try. But, before we jump right into styling, let’s get<br />

an overview of the existing X<strong>HTML</strong>. Here’s just the X<strong>HTML</strong> snippet for the elixir specials;<br />

you’ll find it in “lounge.html” in the “chapter11/lounge” folder:<br />

We have<br />

three<br />

elixirs,<br />

each <strong>with</strong><br />

the same<br />

structure.<br />

Weekly Elixir Specials<br />

<br />

<br />

<br />

Lemon Breeze<br />

<br />

The ultimate healthy drink, this elixir combines<br />

herbal botanicals, minerals, and vitamins <strong>with</strong><br />

a twist of lemon into a smooth citrus wonder<br />

that will keep your immune system going all<br />

day and all night.<br />

<br />

<br />

<br />

<br />

Chai Chiller<br />

<br />

Not your traditional chai, this elixir mixes mat&eacute;<br />

<strong>with</strong> chai spices and adds an extra chocolate kick for<br />

a caffeinated taste sensation on ice.<br />

<br />

<br />

<br />

<br />

Black Brain Brew<br />

<br />

Want to boost your memory? Try our Black Brain Brew<br />

elixir, made <strong>with</strong> black oolong tea and just a touch<br />

of espresso. Your brain will thank you for the boost.<br />

<br />

<br />

<br />

The elixir specials section begins<br />

<strong>with</strong> an heading.<br />

Join us any evening for these and all our<br />

other wonderful<br />

elixirs.<br />

divs and spans<br />

Each elixir has<br />

an image in a<br />

element.<br />

...a name, in an<br />

heading...<br />

...and a<br />

description,<br />

also in a<br />

paragraph.<br />

And this<br />

structure is<br />

repeated for<br />

each elixir.<br />

And, finally, at the<br />

bottom, there is<br />

another paragraph, <strong>with</strong><br />

some text and a link to<br />

the real elixirs page.<br />

you are here 431

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

Saved successfully!

Ooh no, something went wrong!