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.

the no css test<br />

Exercise<br />

514 Chapter 12<br />

Want to know how your pages are going to look to your users<br />

under bad conditions (like on a browser that doesn’t support<br />

<strong>CSS</strong>)? Then open your “index.html” file and remove the <br />

from the , save, and reload the page in your browser.<br />

Now you can see the real order things will be seen in (or<br />

heard from a screen reader). Go ahead and give it a try. Just<br />

make sure you put it back when you’re done (after all, this is a<br />

chapter on <strong>CSS</strong>).<br />

Here’s the Starbuzz page <strong>with</strong>out<br />

<strong>CSS</strong>. For the most part we’re in<br />

good shape. It is still very readable,<br />

although the Bean Machine does<br />

come before the main content,<br />

which probably isn’t what we want.<br />

Look Ma, no <strong>CSS</strong>!<br />

Righty tighty, lefty loosey<br />

Let’s get the Starbuzz page switched over so that the main content is floating left. We’ll<br />

check out how that works, and then move on to make it really work. You’re going to see<br />

the mnemonic righty tighty, lefty loosey holds true in the <strong>CSS</strong> world too... well, for our<br />

sidebar, anyway. Here’s how we convert the page over... just a few simple steps.

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

Saved successfully!

Ooh no, something went wrong!