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.

Chapter 4: The Cascade and InheritanceFigure 4-1bIn Figure 4-1b, you can see an example of some of the default styles that a browser applies. One exampleis the spacing between the heading “Default <strong>Style</strong>s” and the text in the paragraph that follows. Theunordered list ( element) has a bullet be<strong>for</strong>e each list item (the element).Figure 4-2a demonstrates a style sheet that removes the default styles shown in Figure 4-1b.Figure 4-2aThe style sheet in Figure 4-2a is applied to the markup in Figure 4-1a, which results in the output inFigure 4-2b.111

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

Saved successfully!

Ooh no, something went wrong!