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 - Round Classes

By drupalhero |

Rounded corners can help soften an otherwise sharp design, but they have been difficult to achieve using images. CSS3 includes a simple method for rounding off one or all of the corners of an element’s box: border-radius. Both Mozilla and Webkit have implemented their own versions of border-radius in advance of the final W3C pronouncement, and you need to take these browser extensions into account for the widest interoperability. To set rounded corners:

W3CSS Theme - Font & Text Classes

By drupalhero |

It’s sometimes difficult to keep track of all the values that you are using in your design. It’s unlikely that CSS will ever include constants, so it will help to keep notes in an easy-to-reference location in your document. Creating a glossary of colors and types leads to more consistent and attractive designs  Although section headers and dividers really aren’t anything more than CSS comments, they do help organize your CSS and allow you to quickly scan your code to locate particular CSS rule groups. If you have established a TOC, I recommend reflecting that organization here.

W3CSS Theme - Font-Size Classes

By drupalhero |

What Is a Markup Language? HTML is used to mark up the structure of Web pages, but other markup languages are used by computers on the Web and beyond. The Standard Generalized Markup Language (SGML) is the grandfather of most markup languages used for print and the Internet. SGML is the international standard used to define the structures and appearance of documents. Multiple SGMLs have been created for a variety of document types and for various specialties—such as physics, accounting, and chemistry. HTML and XHTML are the Web’s primary version of SGML.

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.