1 / 8

Formatting with Style

Formatting with Style. Chapter 10. Choosing a Font Family. Multi-word fonts require quotes Ex: p {font-family: “Times New Roman”} Use “standard” fonts Specify alternate fonts Ex: p {font-family: Arial, Verdana}. Bold & Italic Fonts. Method 1: Selectors

wayland
Download Presentation

Formatting with Style

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Formatting with Style Chapter 10

  2. Choosing a Font Family • Multi-word fonts require quotes • Ex: p {font-family: “Times New Roman”} • Use “standard” fonts • Specify alternate fonts • Ex: p {font-family: Arial, Verdana}

  3. Bold & Italic Fonts Method 1: Selectors p {font-style: italic; font-weight: bold} Method 2: Classes .emph {font-style: italic} .bolded {font-weight: bold} <span class=“emph”>text</span> <span class=“bolded”>text</span>

  4. Font Size • Specify units or % (ex: 12px or 110%) • Use keywords: small, medium, large, x-small, xx-small, x-large, xx-large Method 1: Selectors p {font-size:12pt} Method 2: Classes .bodyfontsize {font-size:12pt} <body class=“bodyfontsize”>

  5. Indentations Method 1: Selectors p {text-indent: 20px} Method 2: Classes .pindent {text-indent: 20px} <p class=“pindent”>

  6. Aligning Text • Alignment can be left, center, right or justify Method 1: Selectors h1,h2 {text-align: center} Method 2: Classes .hcenter {text-align: center} <h1 class=“hcenter”>

  7. Text Decoration • Common values: Blink, line-through, overline, underline, none Method 1: Selectors a:link {text-decoration: none} Method 2: Classes .nodecor {text-decoration: none} .stricken {text-decoration: line-through} <a href=“index.htm” class=“nodecor”> <span class=“stricken”>

  8. Layers

More Related