FOREGROUND COLOR h1 { color: DarkCyan;} h2 { color: #ee4e80;} p { color: rgb(100, 100, 90);} The three traditional ways to specify colors: Color name.

Slides:



Advertisements
Similar presentations
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Advertisements

Cascading Style Sheets Color and Background Controls Border and Margin Controls (Boxes)
Color by Numbers Pages Syntax Introduced color color() colorMode()
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
Introduction to Multimedia
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
Skills: selecting colors, specifying colors in HTML Concepts: combining red, green and blue light to generate colors, combining light versus combining.
Design, Formatting, CSS, & Colors 27 February, 2011.
4.01 Cascading Style Sheets
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
PREPARING PUBLICATIONS Using Color in Publications.
Choose Text Styles Sparingly for Emphasis with or without COLOR Bold Italic Underline Combination.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
COLORS & BACKGROUNDS CHAPTER 13. SPECIFYING COLORS Three common places where you specify color 1.Text color.box { color: blue; } 2.Background color.box.
Lesson 13 – Color and Typography. 2 Objectives Discuss basic color theory. Understand the color wheel. Understand how color is presented on a computer.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
Kevin Murphy Web Color Basics Masters Project CS 490.
WEEK 3 Lecture 2 CSS TEXT AND FONT PROPERTY Copyright © Corporate Health and Consultancy Services Limited Web Developmen t 15.WD.1 Mildred Fakoya.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Most of the attributes of the body element specify colors for the Web page. Note: The background attribute won’t be useful till we learn about graphics.
Adobe Photoshop CS4 - Illustrated
COMP213 – Web Interface Design
COMPANY PUBLICATIONS Using Color in Publications.
Unit I Applying Advanced Styling CSS. CSS3 can style many aspects that in the past required integration of images New features are not supported by all.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 7: CSS Building Blocks.
Using Color in Publications. Color in a publication can: Elicit feelings Emphasize important text Attract attention Choose one or two colors Use “spot.
Hue: the property of light by which the color of an object is classified as red, blue, green, or yellow in reference to the spectrum. Saturation: the.
HSB to RGB to HEX.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
INTRODUCING CSS What CSS does How CSS works Rules, properties, and values.
ColorsColors. Color Keywords/Names 140 color keywords/names are defined in the HTML and CSS color specification –17 standard colors (HTML accepts 16 of.
Lesson 13 – Color and Typography. 2 Objectives Understand basic color theory. Understand the color wheel. Understand how color is presented on a computer.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
Web Colors.
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets Color and Font Properties
4.01 HTML, CSS and Color.
Chapter 13 Colors & backgrounds.
Formatting Text with CSS
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Design Concepts: Module A: The Science of Color
Tutorial 4 Topic: CSS 3.0 Li Xu
Cascading Style Sheets (Formatting)
4.01 HTML, CSS and Color.
CSS3 Cascading Style Sheet
By Brian MacMillan version all rights reserved.
UNDERSTANDING CSS: THINKING INSIDE THE BOX The Cottage Garden The cottage garden is a distinct style of garden that uses an informal design, dense.
Web Systems & Technologies
Using Color in Publications
Chapter 6 More CSS Basics Key Concepts
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Cascading Style Sheets
CSS – Properties & Values
Web Colors.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Cascading Style Sheets Color and Font Properties
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
CONTROLLING SIZES OF IMAGES USING CSS img.large { width: 500px; height: 500px;} img.medium { width: 250px; height: 250px;} img.small { width:
Web Development & Design Foundations with H T M L 5
SEEM4570 Tutorial 3: CSS + CSS3.0
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Programming for webpages
Cooper Part II Making Well-Behaved Products Visual Design
CSS Styles Fonts and Colors.
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2016 Terry Ann Morris, Ed.D.
4.01 Cascading Style Sheets
4.01 HTML, CSS and Color.
Presentation transcript:

FOREGROUND COLOR h1 { color: DarkCyan;} h2 { color: #ee4e80;} p { color: rgb(100, 100, 90);} The three traditional ways to specify colors: Color name Hex code RGB values

BACKGROUND COLOR body { background-color: rgb(200,200,200);} h1 { background-color: DarkCyan;} h2 { background-color: #ee3e80;} p { background-color: white;}

UNDERSTANDING COLOR Explain: how color on a screen is made by mixing red, green, and blue and how a screen is made up of pixels

UNDERSTANDING COLOR Click: RGB colors come in Explain: how color on a screen is made by mixing red, green, and blue how a screen is made up of pixels Click: color picker tool replaces colors

VALUES RGB VALUES rgb(102,205,170) HEX CODES #66cdaa COLOR NAMES mediumAquaMarine Explain: how the values work Click: RGB values comes in Click: Hex values comes in Click: Color names comes in Explain: terms Click: hue Click: saturation Click: brightness HUE SATURATION BRIGHTNESS

CONTRAST LOW CONTRAST HIGH CONTRAST MEDIUM CONTRAST Explain: contrast is important Load: low contrast Click: high contrast Click: medium contrast Click: reversed text If text is reversed out (a light color on a dark background) increase contrast and line height.

CSS3: OPACITY p.one { background-color: rgb(0,0,0); opacity: 0.5; padding: 10px;} p.two { background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.5);}

CSS3: OPACITY p.one { background-color: rgb(0,0,0); opacity: 0.5; padding: 10px;} p.two { background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.5);} Note: Will not be transparent in older browsers

CSS3: OPACITY p.one { background-color: rgb(0,0,0); opacity: 0.5; padding: 10px;} p.two { background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.5);} Note: RGBA has a fallback of plain RGB values for older browsers that do not understand RGBA.

CSS3: HSL COLORS SATURATION LIGHTNESS Introducing these concepts for the hsl / hsla properties Click: introduces the hue wheel (represented as angle 0 - 360) similar to colloquial idea of color Click: saturation (% of gray in color) Click: lightness (amount of white/lightness or black/darkness in color)

CSS3: HSL & HSLA body { background-color: #C8C8C8; background-color: hsl(0,0.0%, 78%);} p { background-color: #ffffff; background-color: hsla(0,100%,100%,0.5);} Note: second rule uses alpha transparency value (between 0 and 1.0)

SUMMARY Color not only brings your site to life, but also helps convey the mood and evokes reactions. Clicks: Load individual bullets

SUMMARY There are three ways to specify colors in CSS: RGB values, hex codes, and color names. Clicks: Load individual bullets

Color pickers can help you find the color you want. SUMMARY Color pickers can help you find the color you want. Clicks: Load individual bullets

SUMMARY Ensure that there is enough contrast between any text and the background color (or people will not be able to read your content). Clicks: Load individual bullets

SUMMARY CSS3 has introduced an extra value for RGB colors to indicate opacity. It is known as RGBA. Clicks: Load individual bullets

SUMMARY CSS3 also allows you to specify colors as HSL values, with an optional opacity value. It is known as HSLA. Clicks: Load individual bullets