Chapter 12: FORMATTING TEXT

Similar documents
CSS. Text & Font Properties. Copyright DevelopIntelligence LLC

Web Site Design and Development Lecture 6

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2)

CSS: Formatting Text. CSS for text processing: font-family. Robert A. Fulkerson

Introduction to Multimedia. MMP100 Spring 2016 thiserichagan.com/mmp100

Appendix D CSS Properties and Values

CSS: The Basics CISC 282 September 20, 2014

IDM 221. Web Design I. IDM 221: Web Authoring I 1

CSS Styles Quick Reference Guide

Introduction to CSS. Fijihosting.com Introduction to CSS page 1. What are style sheets? Lovely! How do I use them?

Controlling Appearance the Old Way

ACSC 231 Internet Technologies

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference

Creating A Website - Part 1: Web Design principles, HTML & CSS. CSS Color Values. Hexadecimal Colors. RGB Color

COSC 2206 Internet Tools. CSS Cascading Style Sheets

The building block of a CSS stylesheet. A rule consists of a selector and a declaration block (one or more declarations).

User-Centered Website Development: A Human- Computer Interaction Approach

Lecture 10. CSS Properties. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

CASCADING STYLESHEETS

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

Web Development & Design Foundations with HTML5

CSS. Lecture 16 COMPSCI 111/111G SS 2018

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

Web Development & Design Foundations with HTML5

Introduction to Web Tech and Programming

Unit 3--Alignment, Formatting Font--Size, Color, Style [Bold, Italic, and Underline] Block

Adding CSS to your HTML

CSS Lecture 16 COMPSCI 111/111G SS 2018

Chapter 16: PAGE LAYOUT WITH CSS

CMPT 165: More CSS Basics

CSc 337 LECTURE 3: CSS

Admin. Midterm 1 on. Oct. 13 th (2 weeks from today) Coursework:

1 of 7 11/12/2009 9:29 AM

Floats, Grids, and Fonts

8a. Cascading Style Sheet

UNIVERSITI TEKNOLOGI MALAYSIA TEST 1 SEMESTER II 2012/2013

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

CSS Selectors. element selectors. .class selectors. #id selectors

Tutorial 3: Working with Cascading Style Sheets

ITNP43: HTML Lecture 4

Fundamentals of Web Programming a

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

CSCB20 Week 7. Introduction to Database and Web Application Programming. Anna Bretscher Winter 2017

TEMPLATE ORDER GUIDE /

Cascading Style Sheet Quick Reference

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

Typography. is the foundation of good web design

Reading 2.2 Cascading Style Sheets

WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

HTML/XML. HTML Continued Introduction to CSS

By Ryan Stevenson. Guidebook #3 CSS

**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.

CSC 443: Web Programming

Friendly Fonts for your Design

TYPE BASICS Cartographic Design & Principles Winter 2016

MODULE CM 2004 / STAGE 2 / SEMESTER 2 / SESSION Module title Design Principles and Context

Chapter 4 CSS basics

Zen Garden. CSS Zen Garden

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

> > > > Cascading Style Sheets basics

Cascade Stylesheets (CSS)

CSS.

Interactive Design 1 ART263/Advanced Design for the Web ART220 Gregory Eckler. Interactive Design/Advanced Design for the Web CSS Terminology

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

Javascript Hierarchy Objects Object Properties Methods Event Handlers. onload onunload onblur onfocus

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

HTML TUTORIAL ONE. Understanding What XHTML is Not

EECS1012. Net-centric Introduction to Computing. Lecture 3: CSS for Styling

Chapter 10: Understanding the Standards

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Cascading Style Sheets. Overview and Basic use of CSS

How to Create Accessible Word (2016) Documents

CASCADING STYLE SHEETS (CSS) BY: RIHAM ALSMARI, PNU. Lab 4

escuela técnica superior de ingeniería informática

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

OUR TYPOGRAPHY APPROVED UNIVERS FONTS. Univers 65 Bold Univers 65 Bold Oblique Univers 75 Black Univers 75 Black Oblique

CSC309 Programming on the Web week 3: css, rwd

BRAND. For Internal Use Only Not For Use With The Public. For help and guidance on our brand standards, contact

limelightplatform.com

CSS3 Basics. From & CSS Visual Dictionary Learning Curve Books, LLC

Activity 4.1: Creating a new Cascading Style Sheet

CSS for Styling CS380

Web design and development ACS Chapter 5. Working with Text

How to use CSS text styles

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

To illustrate how to set TAG styles the <body> and <h1> tags (for the BODY and the HEADING 1 styles) will be adjusted.

Let s start with the document tree

INFORMATICA GENERALE 2014/2015 LINGUAGGI DI MARKUP CSS

LBS Polytechnic. Hey! Make With The Style Sheet Already, Bub!

CS105 Course Reader Appendix A: HTML Reference

TYPOGRAPHY. ascender arm (as on the capital T) descender bar (as on the capital H) counter ear (as on the lower case g and r)

Customizing Graphical Reports

ASMP Website Design Specifications

Transcription:

Disclaimer: All words, pictures are adopted from Learning Web Design (3 rd eds.) by Jennifer Niederst Robbins, published by O Reilly 2007. PART III: CSS FOR PRESENTATION Chapter 12: FORMATTING TEXT CSc2320

2 In this chapter The font-related properties Text color Text line settings such as line height, indents, and alignment Underlines and overlines Capitalization Letter and word spacing Descendant, ID, and class selectors Specificity 101 Homework 6

3 Font Properties Font-related properties font-family font-size font-weight font-style font-variant font The nature of the Web makes specifying type tricky Don t know which fonts are loaded on users machine Default font size varies by browsers and user preference

4 Specifying the font name font-family Properties Example Why specify more fonts? For back-up!

5 Generic font families When you specify a generic font family, the browser chooses an available font from that stylistic category. serif Times, Times New Roman, Georgia sans-serif Arial, Arial Black, Verdana, Trebuchet MS, Helvetica, Geneva monospace (constant width) Courier, Courier New, and Andale Mono cursive (handwritten) Apple Chancery, Zapf-Chancery, and Comic Sans fantasy Impact, Western, or other decorative font

6 Generic font families Specifying strategies: start with your first choice then, provide some similar alternatives, then end with a generic font family

7 Specifying font size font-size Properties CSS Units of Measurement

8 Specifying font size Many ways:

9 Working with keywords Many designers like predefined absolute keywords: xx-small, x-small, small, medium, large, x- large, xx-large Default size: medium in most browsers Relative keywords: larger and smaller

10 Working with percentages and ems most popular way to specify font sizes: Percentages, ems (equal size with letter M) Use of percentage: Use of em:

11 font weight (boldness) font weight properties: Example:

12 Font style (italics) The font-style property affects the posture of the text, that is, whether the letter shapes are vertical (normal ) or slanted ( italic and oblique). Italic and oblique are same in most browsers

13 Font Variant (Small Caps) Font Variant Properties: In most cases, a true small caps font is not available, so browsers simulate small caps by scaling down uppercase letters in the current font.

14 The shortcut font property Define all font properties in order: Minimum: font-size, font-family

15 Changing Text Color Color property: The value of the color property can be one of 17 predefined color names or a numeric value describing a specific RGB color.

16 More Selector Types Applicable to all paragraphs or places containing these elements. What if some of these elements? Descendant selectors A descendant selector targets elements that are contained within (descendants of) another element. Descendant selectors are indicated in a list separated by a character space.

Descendant selectors More example: 17

18 ID selectors ID selectors allow you to target elements by their id values. The symbol that identifies ID selectors is the octothorp (#), also called a hash symbol. Example:

19 Class Selectors Class names are indicated with a period (.) in the selector. Example: To select all paragraphs with class= special, use: To apply a property to all elements in the same class:

20 Specificity 101 Example:

21 Text Line Adjustments Line height defines the minimum distance from baseline to baseline in text.

22 Indents The text-indent property indents the first line of text by a specified amount.

23 Horizontal Alignment

24 Underlines and Other Decorations put a line under, over, or through text, or turn the underline off under links Turn off underlines under linked text

25 Changing Capitalization

26 Spaced Out insert space between letters (letter-spacing) or words (word-spacing) Example:

27 Homework Reading Chapter 12 Homework 6: Finish excise 12-3 on page 228& 229 Due date: Oct. 20 th (Wednesday) Submit it as assignment6.html to your elocker server under public_html Don t forget to upload your.css or image files if used Check your page at http://validator.w3.org/ (Points will be deducted if more than 3 errors) Download detailed HW6 at here or: http://www.cs.gsu.edu/~zding/2010fall/csc2320/csc2320_hw6.pdf