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

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

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

Chapter 7: The Box ModelThe margin property is a shorthand property <strong>for</strong> the four individual margin properties, margin-top,margin-right, margin-bottom, and margin-left.Margin Property with Four ValuesFigure 7-3 shows a comparison between the individual margin properties and the margin shorthandproperty with four values.Figure 7-3aThe <strong>CSS</strong> in Figure 7-3a is combined with the markup in Figure 7-3b.Figure 7-3bThe <strong>CSS</strong> in Figure 7-3a and the markup in Figure 7-3b result in the output you see in Figure 7-3c.209

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

Saved successfully!

Ooh no, something went wrong!