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 2: The EssentialsFigure 2-11Disabling portions of a style sheet can be useful if you are trying to track down problematic styles, or ifyou are simply experimenting with different effects.Values<strong>CSS</strong> can become quite complex in terms of what it allows a property’s value to be. Figure 2-5 illustratessome, but not all, of the potential types of values that you see in <strong>CSS</strong>. In the coming sections I discusseach of the different types of values that <strong>CSS</strong> allows in greater detail, beginning with keyword values.KeywordsA keyword value is used to invoke a predefined function. For example, red, green, and blue are <strong>CSS</strong>keywords, red, green and blue; all have a predefined purpose. Color keywords can be used on anyproperty that accepts a color value. Figure 2-12 shows some examples of keywords in a style sheet.Figure 2-12The keywords in Figure 2-12 are no-repeat, fixed, and lightblue. no-repeat and fixed providethe browser with instructions <strong>for</strong> how to render the background image. lightblue is a keyword thattells the browser what color the text of hyperlinks should be.31

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

Saved successfully!

Ooh no, something went wrong!