TYPEFACE TERMINOLOGY SERIF SANS-SERIF MONOSPACE Explain: names for different types of typeface (point out differences) Click: serif Click: sans-serif.

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. What is CSS? CSS stands for Cascading Style Sheets (the page—or sheet—helps you create a style that will cascade across all.
Advertisements

Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
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.
Cascading Style Sheets Basics. Why use Cascading Style Sheets? Allows you to set up a series of rules for all pages in a site. The series may be changed.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
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.
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
CSS The Definitive Guide Chapter 6.  Text is the content, and fonts are used to display that content. By using text properties you can affect the position.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
TEXT Size and typeface of text Bold, italics, capitals, underlines Spacing between lines, words, and letters.
Ch 8 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Text and Fonts in CSS. Customizing fonts In CSS, fonts are divided into “font families” Only certain fonts are commonly installed on most computers Therefore.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Chapter 11 & 12 CSS Style Sheets: Intro. Why CSS? Separate presentation from content – more accessible Less work – can change appearance of whole site.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
TYPEFACE TERMINOLOGY SERIFSANS-SERIFMONOSPACE BASELINE TYPEFACE TERMINOLOGY.
1 Cascading Style Sheets
WebD Introduction to CSS By Manik Rastogi.
CSS.
Cascading Style Sheets
CS3220 Web and Internet Programming CSS Basics
Cascading Style Sheets Color and Font Properties
The Internet 10/11/11 Fonts and Colors
Formatting Text with CSS
Introducing :CSS Cascading Style Sheets in 5 Lessons.
Cascading Style Sheets
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
Chapter 7 Page Layout Basics Key Concepts
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Objectives Explore the history of CSS
CSS – Properties & Values
CS 174: Server-Side Web Programming February 7 Class Meeting
The Internet 10/13/11 The Box Model
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
CMPE 280 Web UI Design and Development September 4 Class Meeting
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
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.
Chapter 7 Web Typography
CMPE 280 Web UI Design and Development February 7 Class Meeting
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.
Lesson 5 Topic B – Basic Text & Fonts
Cascading Style Sheets
Cascading Style Sheets
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets™ (CSS)
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
ATLAS WEB Web Typography.
Presentation transcript:

TYPEFACE TERMINOLOGY SERIF SANS-SERIF MONOSPACE Explain: names for different types of typeface (point out differences) Click: serif Click: sans-serif Click: monospace

TYPEFACE TERMINOLOGY BASELINE Explain: terms used Fade in: 'The xyz' Click: Baseline Click: Descender Click: Cap Height Click: Ascender Click: X-height BASELINE

TYPEFACE TERMINOLOGY BASELINE DESCENDER Explain: terms used Fade in: 'The xyz' Click: Baseline Click: Descender Click: Cap Height Click: Ascender Click: X-height BASELINE DESCENDER

TYPEFACE TERMINOLOGY CAP HEIGHT BASELINE DESCENDER Explain: terms used Fade in: 'The xyz' Click: Baseline Click: Descender Click: Cap Height Click: Ascender Click: X-height BASELINE DESCENDER

TYPEFACE TERMINOLOGY ASCENDER CAP HEIGHT BASELINE DESCENDER Explain: terms used Fade in: 'The xyz' Click: Baseline Click: Descender Click: Cap Height Click: Ascender Click: X-height BASELINE DESCENDER

TYPEFACE TERMINOLOGY ASCENDER CAP HEIGHT X-HEIGHT BASELINE DESCENDER Explain: terms used Fade in: 'The xyz' Click: Baseline Click: Descender Click: Cap Height Click: Ascender Click: X-height X-HEIGHT BASELINE DESCENDER

TYPEFACE TERMINOLOGY WEIGHT STYLE STRETCH Explain: different terms used Fade in: weight Click: style Click: stretch

CHOOSING A TYPEFACE FOR YOUR WEBSITE SERIF SANS-SERIF Explain: will see examples of each type of font, and how you can provide preferences in CSS (comma-delimited) Explain: generic name can come at end of font-stack Click: serif Click: sans-serif Continues on next slide

CHOOSING A TYPEFACE FOR YOUR WEBSITE MONOSPACE CURSIVE FANTASY Click: monospace Click: cursive Click: fantasy

SPECIFYING TYPEFACES font-family body { font-family: Georgia, Times, serif;} h1, h2 { font-family: Arial, Verdana, sans-serif;} .credits { font-family: "Courier New", Courier, monospace;}

SPECIFYING TYPEFACES font-family body { font-family: Georgia, Times, serif;} h1, h2 { font-family: Arial, Verdana, sans-serif;} .credits { font-family: "Courier New", Courier, monospace;}

SPECIFYING TYPEFACES font-family body { font-family: Georgia, Times, serif;} h1, h2 { font-family: Arial, Verdana, sans-serif;} .credits { font-family: "Courier New", Courier, monospace;}

SPECIFYING TYPEFACES font-family body { font-family: Georgia, Times, serif;} h1, h2 { font-family: Arial, Verdana, sans-serif;} .credits { font-family: "Courier New", Courier, monospace;}

SIZE OF TYPE font-size body { font-family: Georgia, Times, serif; font-size: 12px;} h1 { font-size: 200%;} .credits { font-size: 1.3em;} Explain: Different ways to specify font-size

SIZE OF TYPE font-size body { font-family: Georgia, Times, serif; font-size: 12px;} h1 { font-size: 200%;} .credits { font-size: 1.3em;} Pixels

SIZE OF TYPE font-size body { font-family: Georgia, Times, serif; font-size: 12px;} h1 { font-size: 200%;} .credits { font-size: 1.3em;} Percentages

SIZE OF TYPE font-size body { font-family: Georgia, Times, serif; font-size: 12px;} h1 { font-size: 200%;} .credits { font-size: 1.3em;} Ems

TYPE SCALES Developed in 16th century Pleasing to the eye Note: Type scale developed in 16th century Explain: Can create different sizes in relation to the body text based on this scale Now used in programs such as Word, Photoshop and InDesign

MORE FONT CHOICE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot');} h1, h2 { font-family: ChunkFiveRegular, Georgia, serif;}

MORE FONT CHOICE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot');} h1, h2 { font-family: ChunkFiveRegular, Georgia, serif;}

MORE FONT CHOICE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot');} h1, h2 { font-family: ChunkFiveRegular, Georgia, serif;}

MORE FONT CHOICE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot');} h1, h2 { font-family: ChunkFiveRegular, Georgia, serif;}

MORE FONT CHOICE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot');} h1, h2 { font-family: ChunkFiveRegular, Georgia, serif;}

BULLETPROOF FONT FACE @font-face @font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/chunkfive.eot'); src: url('fonts/chunkfive.eot?#iefix') format('embedded-opentype'), url('fonts/chunkfive.woff') format('woff'), url('fonts/chunkfive.ttf') format('truetype'), url('fonts/ chunkfive.svg#ChunkFiveRegular') format('svg');} Explain: example of using font-face (no need to learn syntax) Can generate CSS using a site like fontsquirrel.com Different browsers require different formats of font (can also be generated by sites like fontaquirrel.com

FONT FACE FORMATS FORMATS SERVICES LICENSING Must be supplied in several formats fontsquirrel.com provides css rules and conversion Fonts subject to copyright and need appropriate license Click: Formats Click: Services Click: Licensing

OTHER WAYS TO SPECIFY A FONT HOSTED FONTS SIFR CUFON Google web fonts Typekit Relies on Flash Easier licensing Uses JavaScript Requires appropriate license Click: Hosted font services Click: SIFR Click: CUFON

BOLD font-weight .credits { font-weight: bold;}

ITALIC font-style .credits { font-style: italic;}

UPPERCASE & LOWERCASE text-transform h1 { text-transform: uppercase;} h2 { text-transform: lowercase;} .credits { text-transform: capitalize;}

UNDERLINE & STRIKE text-decoration .credits { text-decoration: underline;} a { text-decoration: none;} Note: often used on links to remove default underline Possible values: none, underline, overline, line-through, blink

LEADING line-height p { line-height: 1.4em;} note now underline is removed from the link

letter-spacing, word-spacing LETTER & WORD SPACING letter-spacing, word-spacing h1, h2 { text-transform: uppercase; letter-spacing: 0.2em;} .credits { font-weight: bold; word-spacing: 1em;} Note: letter-spacing especially helpful when using uppercase lettering

ALIGNMENT text-align h1 { text-align: left;} p { text-align: justify;} .credits { text-align: right;} Possible values: left, right, center, justify

VERTICAL ALIGNMENT vertical-align #six-months { vertical-align: text-top;} #one-year { vertical-align: baseline;} #two-years { vertical-align: text-bottom;} Possible values: baseline, sub, super, top, text-top, middle, bottom, text-bottom

INDENTING TEXT text-indent h1 { background-image: url("images /logo.gif"); background-repeat: no-repeat; text-indent: -9999px;} .credits { text-indent: 20px;} This example demonstrates using an image instead of <h1> text.

INDENTING TEXT text-indent h1 { background-image: url("images /logo.gif"); background-repeat: no-repeat; text-indent: -9999px;} .credits { text-indent: 20px;} (Note: The background-image will be covered later on.)

INDENTING TEXT text-indent h1 { background-image: url("images /logo.gif"); background-repeat: no-repeat; text-indent: -9999px;} .credits { text-indent: 20px;} This code moves the text far off the screen.

INDENTING TEXT text-indent h1 { background-image: url("images /logo.gif"); background-repeat: no-repeat; text-indent: -9999px;} .credits { text-indent: 20px;} This is just used to move the text in.

CSS3: DROP SHADOW text-shadow p.one { background-color: #eeeeee; color: #666666; text-shadow: 1px 1px 0px #000000;} p.two { background-color: #dddddd; color: #666666; text-shadow: 1px 1px 3px #666666;} p.three { background-color: #cccccc; color: #ffffff; text-shadow: 2px 2px 7px #111111;} Shows several examples of text-shadows Values: - 1st: how far to left or right shadow falls - 2nd: distance to top or bottom shadow should fall - 3rd: blur amount (optional) - 4th: color

:first-letter, :first-line FIRST LETTER OR LINE :first-letter, :first-line p.intro:first-letter { font-size: 200%;} p.intro:first-line { font-weight: bold;} Note: these are pseudo-elements Need to resize browser to see how first-line really just shows first line

STYLING LINKS :link, :visited a:link { color: deeppink; text-decoration: none;} a:visited { color: black;} a:hover { color: deeppink; text-decoration: underline;} a:active { color: darkcyan;}

STYLING LINKS :link, :visited a:link { color: deeppink; text-decoration: none;} a:visited { color: black;} a:hover { color: deeppink; text-decoration: underline;} a:active { color: darkcyan;}

STYLING LINKS :link, :visited a:link { color: deeppink; text-decoration: none;} a:visited { color: black;} a:hover { color: deeppink; text-decoration: underline;} a:active { color: darkcyan;}

STYLING LINKS :link, :visited a:link { color: deeppink; text-decoration: none;} a:visited { color: black;} a:hover { color: deeppink; text-decoration: underline;} a:active { color: darkcyan;}

STYLING LINKS :link, :visited a:link { color: deeppink; text-decoration: none;} a:visited { color: black;} a:hover { color: deeppink; text-decoration: underline;} a:active { color: darkcyan;}

RESPONDING TO USERS :hover, :active, :focus input { padding: 6px 12px 6px 12px; border: 1px solid #665544; color: #ffffff;} input.submit:hover { background-color: #665544;} input.submit:active { background-color: chocolate;} input.text { color: #cccccc;} input.text:focus { color: #665544;}

RESPONDING TO USERS :hover, :active, :focus input { padding: 6px 12px 6px 12px; border: 1px solid #665544; color: #ffffff;} input.submit:hover { background-color: #665544;} input.submit:active { background-color: chocolate;} input.text { color: #cccccc;} input.text:focus { color: #665544;}

RESPONDING TO USERS :hover, :active, :focus input { padding: 6px 12px 6px 12px; border: 1px solid #665544; color: #ffffff;} input.submit:hover { background-color: #665544;} input.submit:active { background-color: chocolate;} input.text { color: #cccccc;} input.text:focus { color: #665544;}

RESPONDING TO USERS :hover, :active, :focus input { padding: 6px 12px 6px 12px; border: 1px solid #665544; color: #ffffff;} input.submit:hover { background-color: #665544;} input.submit:active { background-color: chocolate;} input.text { color: #cccccc;} input.text:focus { color: #665544;}

ATTRIBUTE SELECTORS Existence p[class] Equality p[class="dog"] Space Fade in: existence (matches attribute - whatever the value) Click: equality (matches attribute value) Click: space (value appears in space separated list of words) Click: prefix (value begins with string) Click: substring (value contains substring) Click suffix (value ends with string) Space p[class~="dog"] Prefix p[attr^="d"] Substring p[attr*="do"] Suffix p[attr$="g"]

SUMMARY There are properties to control the choice of font, size, weight, style, and spacing. Clicks: Load individual bullets

There is a limited choice SUMMARY There is a limited choice of fonts that you can assume most people will have installed. Clicks: Load individual bullets

SUMMARY If you want to use a wider range of typefaces there are several options, but you need to have the right license to use them. Clicks: Load individual bullets

You can control the space between lines of text, individual letters, SUMMARY You can control the space between lines of text, individual letters, and words. Clicks: Load individual bullets

SUMMARY Pseudo-classes can change the style of an element when a user hovers over or clicks on text, or have visited a link. Clicks: Load individual bullets