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 I: The Basics<strong>CSS</strong> comments provide a mechanism that allows you to insert notes about what the styles in the stylesheet do and why they were added. The design of a website can get complicated, and often it’s helpful tomake notes that help you remember why you added one thing or another. The following are some examplesof what you can do with comments.❑ Comments can appear inside of a rule, as illustrated in Figure 2-8.Figure 2-8❑ Comments can appear inside of a declaration, as demonstrated in Figure 2-9.Figure 2-9❑ Comments can span multiple lines, as shown in Figure 2-10.Figure 2-10❑ Comments can be used to disable portions of a style sheet, as shown in Figure 2-11.30

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

Saved successfully!

Ooh no, something went wrong!