To help you better understand how it all works, the following sections illustrate four main CSS concepts, which I’ll refer to as theories: cascade, inheritance, descendant, and specificity. Many factors come into play in how a CSS rule performs its job. Basically, anything that has an HTML tag on it can be styled, and there is even an HTML tag ( span) specifically intended to style content that has no tag. A single rule can affect an entire webpage, a single paragraph, or just a few words or letters. CSS rules can affect single words, paragraphs of text, or combinations of text and objects. The way the selector is written determines how the styling is applied and how the rules interact with one another.Īpplying a CSS rule is not a simple matter of selecting some text and applying a paragraph or character style, as in Adobe InDesign, Adobe Illustrator, or Microsoft Word. These sample rules demonstrate some typical constructions used in selectors and declarations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |