Cascading Style Sheets

Slides:



Advertisements
Similar presentations
LIS901N: Style sheet Thomas Krichel Style sheets Style sheets are the officially sanctioned way to add style to your document We will cover.
Advertisements

Cascading Style Sheets
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.
Web Engineering 1 Ishaq Khan Shinwari MCS City University Peshawar.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
Building a Website: Cascading Style Sheets (CSS) Fall 2013.
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} //
Measurement Many CSS properties (values within the declaration) require that you specify a unit of measurement, such as spacing between elements, border.
1 Professional Communications Working with Type Copyright © Texas Education Agency, All rights reserved. Images and other multimedia content used.
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
文字 CSS 樣式. 文字的屬性 text-decoration none | underline | overline | line-through | blink text-transform none | capitalize | uppercase | lowercase line-height.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Lesson 2 — Working with Text
+ 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.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
ADOBE INDESIGN CS3 Chapter 2 WORKING WITH TEXT.
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.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
1 Web Development CSS (Cascading Style Sheet). 2 1.Setting rules for multiple elements To decrease the amount of typing for setting rules for multiple.
UNIT 4 - TYPOGRAPHY Digital Communications I. 3-D  an effect that gives the illusion of depth.
CSU - DCE Introduction to CSS CSS Text - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Text Control Instructor: Joseph.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
Cascading Style Sheets (Formatting)
WebD Introduction to CSS By Manik Rastogi.
CSS.
Laying out Elements with CSS
CS3220 Web and Internet Programming CSS Basics
( Cascading style sheet )
Creating Your Own Webpage
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 Spacing
Cascading Style Sheets (Formatting)
Understanding Typography
Creating a Baseline Grid
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
TYPEFACE TERMINOLOGY SERIF SANS-SERIF MONOSPACE Explain: names for different types of typeface (point out differences) Click: serif Click: sans-serif.
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
Source: Digital Desktop Publishing--Font Basics
Cascading Style Sheets Color and Font Properties
Web Development & Design Foundations with H T M L 5
CS3220 Web and Internet Programming CSS Basics
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
Professional Communications
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
Cascading Style Sheets
CMPE 280 Web UI Design and Development September 5 Class Meeting
Presentation transcript:

Cascading Style Sheets Text Controls

Tracking Amount of space between words and letters (kerning = space between letters, usually pair-wise). CSS uses word-spacing: and letter-spacing: Helps to improve readability

letter-spacing length value such as .2em; 8px; normal h2{letter-spacing : .3em;} this adds .3 em to normal spacing (so approx = 1.3 em) Positive values add more space; negative values close up the space

word-spacing Changes the spacing between words length value normal word-spacing: 8px; Like letter-spacing, a positive value increases white space and a negative value lessens space.

line-height Used to adjust the spacing between lines Use percent or ems: line-height: 100%; line-height: 1.5em; a number which is then multiplied by the font size to get the spacing; line-height: 1.5 A length value (such as line-height: 24px;) normal line-height: 2.0; or line-height:200% will double space. Often combine with font-size: font: 12px/14px serif;

Setting Text Case text-transform: text-shadow (in CSS 3) small-caps (uppercase, the first letter is larger) uppercase lowercase none text-shadow (in CSS 3)

Text Alignment-Horizontal left right center justify

Text Alignment - Vertical vertical-align: super (used for superscripting) sub (used for subscripting) baseline (natural state) relative value sets the alignment relative to the parent –top, middle, bottom, text-top and text-bottom percentage – raises or lowers the baseline proportional to the parent

Paragraph Indentation text-indent length value e.g. .intro {text-indent: 2em;} percentage (proportionate to the paragraph’s width)

Controlling White Space p {white-space: pre;} which preserves the multiple line settings h2{white-space: nowrap;} Prevents line wrapping, no break tag <br/> :normal

Text Decoration Used for emphasis text-decoration: underline overline line-through None So often see a:link {text-decoration: none;} a:hover {text-decoration: underline;}

Text direction For non-Western languages direction: