Chapter 7 Web Typography

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Links.  Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background-color).  Special for links are that they can.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Measurement Many CSS properties (values within the declaration) require that you specify a unit of measurement, such as spacing between elements, border.
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Chapter 6 Web Typography
Week 7 Web Typography. 2 Understanding Type Design Principles.
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
Typography Web Design Professor Frank. Characteristics of Type on the Web Magazine/book typography – 1200 dpi Computer screens – 85 ppi (maximum)
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
Chapter 6 Web Typography. 2 Principles of Web Design Chapter 5 Objectives Understand principles for type design on a Web site Use the element Understand.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
 A style sheet is a single page of formatting instructions that can control the appearance of many HTML pages at once.  If style sheets accomplished.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Introduction to typography
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets
Laying out Elements with CSS
CS3220 Web and Internet Programming CSS Basics
Understanding and Applying Typography in CSS
Cascading Style Sheets Color and Font Properties
Formatting Text with CSS
Introducing :CSS Cascading Style Sheets in 5 Lessons.
Applying Typography in CSS
Using Cascading Style Sheets Module B: CSS Structure
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Text Size and typeface of text Bold, italics, capitals, underlines
Understanding and Applying Typography in CSS
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Objectives Explore the history of CSS
3 Configuring Color & Text With CSS.
CSS – Properties & Values
CS 174: Server-Side Web Programming February 7 Class Meeting
The Internet 10/13/11 The Box Model
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 4 Class Meeting
CSS Style Sheets: Intro
Desktop Publishing Terminology
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
Cascading Style Sheets
Web Programming– UFCFB Lecture 11
Cascading Style Sheets
Web Development & Design Foundations with H T M L 5
CS3220 Web and Internet Programming CSS Basics
CSS Styles Fonts and Colors.
CMPE 280 Web UI Design and Development February 7 Class Meeting
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
CS3220 Web and Internet Programming CSS Basics
Cascading Style sheet. What is CSS?  CSS stands for Cascading Style Sheets  Cascading: refers to the procedure that determines which style will apply.
Cascading Style Sheets
Lesson 5 Topic B – Basic Text & Fonts
Cascading Style Sheets
Cascading Style Sheets
Layout Terms Visual Hierarchy
Cascading Style Sheets
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
Presentation transcript:

Chapter 7 Web Typography Principles of Web Design, Third Edition

Understanding Type Design Principles Choose fewer fonts and sizes Choose available fonts Design for legibility Avoid using text as graphics Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Understanding CSS Measurement Units CSS offers a variety of measurement units, almost to the point of offering too many choices For example, to specify font size, you can use any of the measurement units listed in the following table Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Understanding CSS Measurement Units Absolute Units Specify a fixed value P {margin: 1.25in;} Cannot be scaled to client display Should only be used when exact measurements of destination medium are known Principles of Web Design, Third Edition

Understanding CSS Measurement Units Relative Units Enables scalable Web pages that adapt to different display types and sizes Recommended method for Web page design Principles of Web Design, Third Edition

Understanding CSS Measurement Units Relative measurement values such as em and px are designed to let you build scalable Web pages that adapt to different display types and sizes. The W3C recommends that you always use relative values. Principles of Web Design, Third Edition

Using the CSS Font Properties font-family font-size font-style font-variant font-weight font (shorthand property) Principles of Web Design, Third Edition

Specifying Font Family Allows specification of generic font family names (e.g., sans-serif) or a specific name (e.g., arial) p {font-family: sans-serif;} p {font-family: arial;} Principles of Web Design, Third Edition

Specifying Font Size p { font-family: arial; font-size: 1.5em; } The following rule sets the <p> element to 1.5em Arial: p { font-family: arial; font-size: 1.5em; } Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Font Style p {font-style: italic;} The font-style property lets you specify italic or oblique text. p {font-style: italic;} Principles of Web Design, Third Edition

Specifying Font Variant The font-variant property lets you define small capitals, which are often used for chapter openings, acronyms, and other special purposes. h1 {font-variant: small-caps;} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Font Weight The font-weight property lets you set the weight of the typeface. p {font-weight: bold;} Principles of Web Design, Third Edition

Using the Font Shortcut Property The font shortcut property lets you abbreviate the more verbose individual property listings. The following rules produce the same results. p {font-weight: bold; font-size: 18pt; line-height: 24pt; font-family: arial;} p {font: bold 18pt/24pt arial;} Principles of Web Design, Third Edition

CSS Text Spacing Properties text-indent text-align text-decoration line-height vertical-align letter-spacing word-spacing Principles of Web Design, Third Edition

Specifying Text Indents Use the text indent property to set the amount of indentation for the first line of text in an element, such as a paragraph. The following rule sets an indent of 24 points: p {font-family: text-indent: 24pt;} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Text Alignment Use the text-align property to set horizontal alignment for the lines of text in an element. p {text-align: justify} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Text Decoration Use the text-decoration property to add or remove underlining from text. The following code removes the underlining from hypertext links. a {text-decoration: none} Principles of Web Design, Third Edition

Specifying Text Decoration Principles of Web Design, Third Edition

Specifying Line Height CSS allows you to specify either a percentage or absolute value for the line height, which is more commonly called leading. The following rule sets the line height to 2 em: p {line-height: 2 em;} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Vertical Alignment The vertical-align property lets you adjust the vertical alignment of text within the line box. Vertical-align works on inline elements only. Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Vertical Alignment You can also use vertical alignment to align text with graphics. The following rule, added to the <img> element with the style attribute, sets the vertical alignment to top: <img src=”image.gif” style=”vertical-align: text-top;”> Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Letter Spacing To adjust kerning, the printer’s term for adjusting the white space between letters, use the letter spacing property. The following rule sets the letter spacing to 4 points. h1 {letter-spacing: 4pt;} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition

Specifying Word Spacing The word-spacing property lets you adjust the white space between words in the text. The following code sets the word spacing to 2 em. h1 {word-spacing: 2em;} Principles of Web Design, Third Edition

Principles of Web Design, Third Edition