13.07.2015 Views

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Part III: Advanced <strong>CSS</strong> and Alternative MediaFigure 14-8bUsing the display and list-style properties allows <strong>for</strong> emulation of the HTML element.Now that you have some idea of what is involved with using the display property to dictate the behaviorof XML elements, the following Try It Out example continues the Spicy Thai Peanut Sauce recipewith the addition of some style sheet rules.Try It OutApplying inline, block, and list <strong>Style</strong>sExample 14-3. Follow these steps to apply display property values to the Spicy Thai Peanut Saucerecipe.1. Enter the following <strong>CSS</strong> into your text editor:page {display: block;width: 100%;height: 100%;background: #fff url(‘fruit_veg_web.jpg’) no-repeat fixed center center;}recipe {display: block;font-family: monospace;padding: 10px;margin: 10px;/* Moz proprietary opacity property */-moz-opacity: 0.7;520

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

Saved successfully!

Ooh no, something went wrong!