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.

Part II: PropertiesIn Figure 10-8, you see the combination of each different type of value <strong>for</strong> the background-positionproperty. You’ll note the difference in the rendering of the first box between Safari and Firefox. Firefoxrejects the background position of the first box entirely because the top keyword appears first, ratherthan second as required by the <strong>CSS</strong> 2.1 specification. Safari tolerates the ordering being different.Tiling and PositionWhat happens when the background is tiled and a position is set? You see an example of positioning atiled background with a length measurement in Figure 10-9.Figure 10-9aThe <strong>CSS</strong> in Figure 10-9a is combined with the markup in Figure 10-9b.354

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

Saved successfully!

Ooh no, something went wrong!