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.

exercise solutions<br />

382 Chapter 9<br />

Crack the Safe Solution<br />

Dr. Evel’s master plans have been locked away inside his personal safe and<br />

you’ve just received a tip that he encodes the combination in hex code. In fact,<br />

so he won’t forget the combination, he makes the hex code the background<br />

color of his home page. Your job is to crack his hex code and discover the<br />

combination to the safe. To do that, simply convert his Web color into its red,<br />

green, and blue decimal values and you’ll have the right-left-right numbers of<br />

his combination. Here’s the background Web color from his home page:<br />

body {<br />

background-color: #b817e0;<br />

}<br />

Crack the code, and then write the combination here:<br />

(11 * 16) + 8 =<br />

184<br />

(1 * 16) + 7 =<br />

23<br />

right left right<br />

(14 * 16) + 0 =<br />

224

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

Saved successfully!

Ooh no, something went wrong!