CSS Styles Fonts and Colors.

Slides:



Advertisements
Similar presentations
Ripasso. 2 Proprietà del testo body { font-family: Verdana, Geneva, Arial, sans-serif; } Ciao sans-serifserif.
Advertisements

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: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
CSS Digital Media: Communication and design 2007.
CSS. CSS, or Cascading Styles Sheets, is a way to style HTML. Whereas the HTML is the content, the style sheet is the presentation of that document.
Introduction to CSS.
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.
HyperText Markup Language (HTML) Uses plain text to add markup instructions to a file. If you can't produce it with a standard keyboard, it can't go into.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
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.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
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.
Chapter 8 Creating Style Sheets.
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
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.
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.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
(CSS) More Details Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Chapter 6 An Introduction to HTML Pages Tag Nesting You can put two tags together to combine the effects Bold and underlined But make sure.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
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.
CSS Font CSS font properties define the font family, boldness, size, and the style of a text. CSS Font Families Generic family Font familyDescription Serif.
CSS properties Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.
Formatting with Styles. Choosing a Font Family font-family property has a special characteristics: you can specify more than one font h1, h2 {font-family:”Arial.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 10: Formatting Text with Styles.
Cascading Style Sheets
CSS for Styling Text.
CS3220 Web and Internet Programming CSS Basics
Style Sheets.
Understanding and Applying Typography in CSS
Cascading Style Sheets Color and Font Properties
The Internet 10/11/11 Fonts and Colors
Creating Your Own Webpage
Introducing :CSS Cascading Style Sheets in 5 Lessons.
Applying Typography in CSS
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Text Size and typeface of text Bold, italics, capitals, underlines
Understanding and Applying Typography in CSS
Cascading Style Sheets (Formatting)
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Introduction to CSS.
Introduction to Web programming
CSS – Properties & Values
The Internet 10/13/11 The Box Model
CSS Style Sheets: Intro
Stylin’ with CSS.
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
CS3220 Web and Internet Programming CSS Basics
Creating your own Styles
Lesson 5 Topic B – Basic Text & Fonts
Stylin’ with CSS.
Stylin’ with CSS.
Session IV Chapter 15 - How Work with Fonts and Printing
Cascading Style Sheets
Cascading Style Sheets
Presentation transcript:

CSS Styles Fonts and Colors

Adding a splash of color Colors

Reserved Colors Names You will specify font color with the color property. You can see the list of reserved color words here: http://www.w3schools.com/tags/ref_colornames.asp

RGB Colors With Red/Green/Blue colors you specify the amount of each color that is mixed together to make your desired color. Like with paint 

Hex Values These are six digit codes preceded by a hash sign with represent the color:

Background Color To specify the background color you use the background property.

Transparency Here we will make the background of the paragraph slightly transparent using rgba The last letter in rgba stands for alpha, indicating the about of transparency.

Let’s make our letters pretty  Text Let’s make our letters pretty 

Serif Font Serif Font’s are fonts with little curly cues on them. These are optimized for print, but not as easy to read on the computer. So I wouldn’t put them on your website  e.g. Georgia, Times New Roman Sample Text Curly Cue

Sample Text Sans-Serif Font These font’s don’t have the curly cues. They are optimized for computers Use Sans-Serif font’s on your website e.g. Arial, Verdana, Helvetica No Curly Cue Sample Text

Font Family To specify your font you can put it in the font family. Often you specify the font-family in the body tag so it applies to all the text in your document. You can then change the font-family of individual styles accordingly.

Font size Most commonly, font sizes are specified in pixels.

Font Weight This property controls the boldness of your font. You can specify the boldness in terms of words or numbers Boldness lighter normal bold bolder Boldness 100 200 … 900 OR

Font Style You can specify one of three font styles… Style Description Normal Italic Oblique Displays the normal font style on an angle

Text Decoration We can add strikethroughs and underlines with text decoration Options none underline overline line-through blink

Text Alignment Just like in Microsoft Word, you can align: left, right, center, or justify

Giving links their own flair Styling Links Giving links their own flair

Links Links have a few different states We can style each state differently State Description :link Before it’s been visited :visited After it’s been clicked removed from most browsers :hover When the user is hovering over it :active When the user clicks it

Links Let’s style them 