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

Intro To Cascading Style Sheets By Mario Yannakakis.
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.
Chapter 3 © 2003 by Addison-Wesley, Inc Introduction - HTML is primarily concerned with content, rather than style - However, tags have presentation.
CSS Digital Media: Communication and design 2007.
Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
Basics CSS Chapter 3 1.
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.
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.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
CSS Cascading Style Sheets *referenced from
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.
CSS Details Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  To use CSS properties for fonts  Evaluate whether to use pts,
WebD Introduction to CSS By Manik Rastogi.
CSS.
3.1 Introduction - HTML is primarily concerned with content, rather
HTML WITH CSS.
CSS for Styling Text.
CS3220 Web and Internet Programming CSS Basics
Understanding and Applying Typography in CSS
The Internet 10/11/11 Fonts and Colors
HTML WITH CSS.
Creating Your Own Webpage
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
Understanding and Applying Typography in CSS
Cascading Style Sheets (Formatting)
Cascading Style Sheet (CSS)
3.5 Property Value Forms - There are 60 different properties in 7 categories: - Fonts - Lists - Alignment of text - Margins - Colors - Backgrounds - Borders.
3 Configuring Color & Text With CSS.
Introduction to Web programming
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
Formatting Text with HTML and CSS
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
Cascading Style Sheets
Introduction to Cascading Style Sheets (CSS)
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
Lesson 5 Topic B – Basic Text & Fonts
Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Cascading Style Sheets
Cascading Style Sheets™ (CSS)
CMPE 280 Web UI Design and Development September 5 Class Meeting
Presentation transcript:

Cascading Style Sheets CSS Details Cascading Style Sheets

Lesson Overview In this lesson, you will learn: Selector grouping CSS properties for fonts Ask one kid to sketch what other kids describe (magazine page that sketcher can’t see) Look at result—shortcomings? Sketch is probably not super-accurate Need a very specific, accurate page description language—HTML

Grouping Styles A style can select multiple elements separated by commas The individual elements can also have their own styles Grouping: 3 elements with same color Introduce CSS. Cascading Style Sheets (CSS) are used to create a consistent look within a Web site. Remind students that a Web site is a collection of Web pages. By using CSS, a Web designer can create a consistent look between the pages of the site and easily change the look with a few simple changes of code. h2 has additional style

Grouping Styles Exercise In your favorites assignment, apply the same color to the <p>, <h1>, <h3> tags

Font Properties Property Description Example Values font-family Which font will be used Arial “Times New Roman” font-size How large are the letters 12pt 12px 1.5em font-style Enable / disable italic style normal italic font-weight Enable / disable bold style bold bolder lighter

font-family Specifies the font for an element. If a font name contains a space, it must be quoted. Supports multiple font names in the preferred order. If the first font is not supported by the computer, the next is tried Specify generic fonts at the end Generic font names: serif, sans-serif, cursive, fantasy, monospace

font-size Units: pt (point): number of points. A point is 1/72 of an inch onscreen. px (pixels): number of pixels on the screen em (m-size): number of m-widths. 1em is equal to the font’s current size Vague font sizes: xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger Percentage sizes: e.g.:

font-weight, font-style font-weight: normal, bold, bolder, lighter font-style: normal, italic

Deprecated HTML Tags Do NOT use the following HTML tags for styling. They are deprecated: <font> <b> <i> <center> Use CSS to define the font, size, and other styles of text. Use of deprecated HTML tags will result in deductions in your homework scores.

Font Exercise In your favorites assignment, apply the following styles: font-family font-size font-style font-weight

Text Properties Property Description Example Values text-align Horizontal alignment of text in an element left center right justify text-decoration Special decoration on the text none underline overline line-through blink line-height Gap between lines of text 2 12pt 120% text-indent Indents first letter of each paragraph 20px 5%

line-height Possible values: normal number: a number that will be multiplied with the current font size to set the line height. length: a fixed line height in px, pt, cm, etc. %: a line height in percent of the current font size

list-style-type Possible values: none disc (default), circle, square decimal: 1,2,3,… decimal-leading-zero: 01, 02, 03,… lower-roman: i, ii, iii, iv,v,… upper-roman lower-alpha others

Text Exercise In your favorites assignment, apply the following styles: text-align line-height text-decoration list-style-type