CSS Detective Guide: Tricks for solving tough CSS mysteries, by Denise R. Jacobs

This code . .

Sub Heading

This is the content

From the Library of Wow!

Background: background-color background-image background-attachment background-position background-repeat; The order is unimportant, and there are no required values. jpg) fixed 50% 50% no-repeat; Here are the default values: background: transparent none scroll 0 0 repeat; In terms of the background position, it is important to know that if you declare only one of the background position values but not the second; the declared value will be the horizontal value; and the background image will be vertically centered.

Universal The universal selector is the asterisk (*). This selector lets you select every element on the page and apply the style rules to them. *{font-family: Arial, sans-serif;} Element/type The element or type selector targets an HTML element, and thus uses a tag name. This enables you to select any of this kind of element in the document. p {font-size: 1em;} Class In HTML, every single tag can have the class attribute. A class selector targets the value of a class attribute of a tag. A class attribute can be used multiple times in a document and applied to different elements.

Download PDF sample

Rated 4.09 of 5 – based on 18 votes