W3CSS Theme - Effect Classes

By drupalhero |

Most HTML tags have browser inherited styles associated with them. These default styles are actually defined by the Web browser developer. Because the browser developer has added them, you need to remember that they are there and will affect your design. For example, the tag will italicize text on most browsers. No cosmic constant dictates that emphasized text is italicized; it’s just that the guys and gals programming the browser software decided to do it that way. The good news is that you can use CSS to override the browser styles.

W3CSS Theme - Responsive Classes

By drupalhero |

Cascading Style Sheets, or CSS, is a language used to specify the visual appearance of a Web page—in contrast to HTML (HyperText Markup Language), which is a markup language that defines the structure of a document for distribution on the Web. HTML tells a Web browser how the content is organized on the page, whereas CSS tells the browser how it should look. CSS3, an abbreviation for CSS Level 3, is the next generation of this style language that adds several new capabilities.

W3CSS Theme - Layout Classes

By drupalhero |

1. Add content to your HTML file. Using the HTML file you created in chapter 2, add text and image content. I tend to use Alice’s Adventures in Wonderland, but anything will do. A great source for text is Project Guttenberg (www.gutenberg. org). 2. Markup your content. All styles require markup in the Web page to give them something to be applied to. Make sure to tag headers and paragraphs. 3. Add classes and IDs to your markup. Classes give you a “hook” to apply specific styles to specific elements. Don’t go overboard, though.

W3CSS Theme - Margin Classes

By drupalhero |

The margin of an element allows you to set the space between that element and other elements in the window by specifying one to four values that correspond to all four sides together, the top/ bottom and left/right sides as pairs, or all four sides independently. To define the margins of an element: 1. Start your declaration by typing the margin shortcut property name in the declaration block, followed by a colon (:) margin: 2. Type a value for the margin.

W3CSS Theme - Container Classes

By drupalhero |

Working with Pseudo-classes Many HTML elements have special states or uses associated with them that can be styled independently. One prime example of this is the link tag which has link (its normal state), a visited state (when the visitor has already been to the page represented by the link), hover (when the visitor has their mouse over the link), and active (when the visitor clicks the link). All four of these states can be styled separately.