Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’

Slides:



Advertisements
Similar presentations
Cascading Style Sheets. Next Level Cascading Style Sheets (CSS) - control the look and feel of your HTML documents in an organized and efficient manner.
Advertisements

Cascading Style Sheets (CSS): Pixel-Level Control with HTML Ease
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} //
Session Objectives Setting the font family Setting the font size Working with Web fonts Setting font faces and sizes Setting font and text appearances.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
Text Properties, Line Box, CSS. Text Properties Properties related to the display of text. Text-align : left, right, center I like FSU!
Technologies for web publishing Ing. Václav Freylich Lecture 6.
1 CSS Styling with Fonts and Colors. 2 CSS Cascading Style Sheets and fonts CSS provides Style or Presentation options for our html pages CSS properties.
Workshop: CSS-Part I Cascading Style Sheets add style to your HTML web pages.
More HTML Chapter 4. 2 Nesting Tags How do you write the following in HTML? The wrong way: This is really, REALLY fun ! Tags must be correctly nested.
WEB PAGES: CREATING AND MAINTAINING ** Tom Keane & Mayis SeapanInstructors: HTML Tags to format your text.
CSS Properties on Parade PropertyValid valuesExample font-familylist of fonts (separate with commas, end with generic font: serif, sans-serif, fantasy,
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
+ Text & Font Styles Unit 3 Lesson Different Font Categories Sans Serif – block style fonts Example - Rockwell Easy to read and good to use when.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Formatting Text (Plus More Selectors) Learning Web Design: Chapter 12.
Web Design – Sec 4-6 and 4-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Selectors thru Borders. CSS – Cascading Style Sheets – is a way to style HTML HTML is the content base of a web page CSS provides the presentation qualities.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Principles of Web Design 6 th Edition Chapter 5 – Web Typography.
1.NET Web Forms CSS: Style Sheets © 2002 by Jerry Post.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Cascading Style Sheets CSS. CSS - Structure Declaration block Property: identifies what to change Value: how to change it Selector – example h1{ font-size:
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
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.
Cascading Style Sheets " Provide means to control and change presentation of HTML documents. " Allow the user to impose a standard style. " Three levels.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Formatting Text and Lists Essentials for.
 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.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
TEXT Size and typeface of text Bold, italics, capitals, underlines Spacing between lines, words, and letters.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
Files you will need ... Black Goose Bistro Summer Menu
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
CSS with XHTML Please use speaker notes for additional information!
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
Cascading Style Sheets Web Design Fairport High School.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CSS Text Text properties allow you to control the appearance of text. It is possible to change the color of a text, increase or decrease the space between.
CSS Cascading Style Sheets *referenced from
ColorsColors. Color Keywords/Names 140 color keywords/names are defined in the HTML and CSS color specification –17 standard colors (HTML accepts 16 of.
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
Font-Family, Color and Background. Basics  CSS rule: Selector (multiple separated by, ) Declaration (multiple separated by ; ) Example: p { color: red;
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.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.
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 Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
TYPEFACE TERMINOLOGY SERIFSANS-SERIFMONOSPACE BASELINE TYPEFACE TERMINOLOGY.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Cascading Style Sheets Color and Font Properties
The Internet 10/11/11 Fonts and Colors
Creating Your Own Webpage
Introduction to Web programming
The Internet 10/13/11 The Box Model
CSS Style Sheets: Intro
Cascading Style Sheets Color and Font Properties
Stylin’ with CSS.
Cascading Style Sheets
Presentation transcript:

Web Design (14) CSS Formatting Text

Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’ area of your ‘formattingtext’ page to try out the following examples.

Fonts (1) font-family: 3 examples body {font-family: Georgia, serif;} Serif typefaces have decorative appendages h1 {font-family: Verdana, sans-serif;} Sans-serif typefaces have straight letter strokes p {font-family: Courier, monospace;} Monospace typefaces have a constant width Try these out in the ‘myfirst.css’ page and look at the result on the ‘formattingtext.html’ page

Fonts (2) font-sizes (absolute values) There are many ways of setting font-size, but we’ll start by working with pixels. Each of the text tags (p, h1, h2, h6) has a default size. If you wish to change this, simply code: font-size: 24px; This is an ‘absolute’ value. Again try this out in ‘myfirst.css’ and examine the effect.

Fonts (2) font-sizes (relative values) Relative changes to font-size can be achieved with percentages: font-size: 150%; And with ‘em’ (in printing an ‘em’ is based on the width of the capital letter M): font-size: 1.5em; Note: Relative measurements are especially important for creating websites that are to be seen on different screen sizes. Try these out in ‘myfirst.css’ …..

Fonts (3) weight & italics Font-weight choices: bold, bolder, lighter, 100, 200, …. 900 font-weight: bold; Italics: font-style: italic Try these out…………..

Text Color (1) (note US spelling!) With the color property either color names or numerical values can be used. Names include: black, white, purple, lime, navy, aqua, silver, maroon, fuchsia, olive, blue, orange, gray, red, green, yellow, teal So, to make the h1 elements in a document gray: h1 {color: gray;}

Text Color (2) Numerical values : # (black); #FFFFFF (white); # (purple); #00FF00 (lime); # (navy); #0000FF (aqua); #C0C0C0 (silver); # (maroon); #FF00FF (fuchsia); # (olive); #0000FF (blue); #FFA500 (orange); # (gray); #FF0000 (red); # (green); #FFFF00 (yellow); # (teal); So, to make the h1 elements in a document gray: h1 {color: #808080;} Again, see how text changes in your html page, as you introduce some of these colours.

Text Line Adjustments Just to mention ways in which text can be formatted, if you wish to do this: line-height (to give characters more space) text-indent (to set text in from the left) text-align (to align text onto a margin) text-decoration: underline or blink Try some of these ….

Other Text Adjustments Changing Capitalisation text-transform: capitalize or lowercase or uppercase Inserting Spaces letter-spacing and word-spacing p {letter-spacing: 8px;} Again, try these out in your ‘myfirst.css’ page

Text Shadow (1) h1 {color: darkgreen; text-shadow:.2em.2em silver;} The 2 measurements give a horizontal offset and a vertical offset. Here the shadow will appear lower than the text Try it out!

Text Shadow (2) To produce a shadow that is higher than the text, using minus values for the offsets. h1 {color: darkgreen; text-shadow: -.3em -.3em silver;} Try this!

Text Shadow (3) If you wish to achieve a more shadowy effect, add a third value, which gives it a blur: h1 {color: darkgreen; text-shadow:.2em.2em.05em silver;} Try it out!

Text Shadow (4) Note: the higher the blur value, the softer the blur. h1 {color: darkgreen; text-shadow:.2em.2em.3em silver;} Try this out!

Text Shadow (5) You could research other techniques using text-shadow, including: Multiple shadows, An outer glow, A raised look, An embossed look.