krotdroid.blogg.se

Font georgia css
Font georgia css








font georgia css

Exampleįont-size: 1.2em /* If font-size of body = 10px, 1.2em = 12px */įont: bold 1.2em italic Verdana, sans-serif A class can be used multiple times on a page for similar elements.Ĭlass is represented in CSS as. ID is a unique identifier to an element, and can only be used one time per page. This CSS cheat sheet provides an at-a-glance perspective of common CSS practices it's one of the few times when cheating won't ruin your karma.Ī basic reference to a Cascading Style Sheet (CSS) file titled "style.css" Setting your Base Rulesįor the sake of consistency, it's a good idea to set some base rules that will be applied to any element contained within the body tag:įont-family: Georgia, "Times New Roman", Times, serif įont-size: 62.5% /* Set font-size to metric (16px *. Margin-top: 20px margin-right: 20px margin-bottom: 20px margin-left: 20px For example, setting all four margins to 20 pixels can be expressed: Many CSS statements can simplified and expressed in shorthand form. Standards-compliant HTML: CSS cheat sheet CSS Cheat Sheet










Font georgia css