COLORS & BACKGROUNDS CHAPTER 13. SPECIFYING COLORS Three common places where you specify color 1.Text color.box { color: blue; } 2.Background color.box.

Slides:



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

With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
Web Colors. Web Colors Using CSS Thus far, we have set our text and background colors using actual color names, such as:.example { background-color: gray;
Basics of Web Design Chapter 6 More CSS Basics Key Concepts.
COLORING WITH NUMBERS. NumbersNumbers NumbersNumbers
Basics of Web Design Chapter 6 More CSS Basics Key Concepts 1.
GESTALT | PRECEDENCE | TYPOGRAPHY CONSISTENCY | COLOR Web I - Design.
© red ©
CS 142 Lecture Notes: CSSSlide 1 body { font-family: Tahoma, Arial, sans-serif; color: black; background: white; margin: 8px; } SelectorDeclaration Block.
RGB color model Skills: none IT concepts: combining red, green and blue light to generate colors This work is licensed under a Creative Commons Attribution-Noncommercial-
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
1 CS428 Web Engineering Lecture 10 Images, Tables, Forms, Border-Radius (CSS – V)
Cascading Style Sheets 1 Color and Backgrounds. Cascading Style Sheets 2 Color and Backgrounds Computer color basics Expression of color values using.
Web Design Transparent Backgrounds. Why : Allow text to appear clearly above a graphic background image that still can be seen in the background. Without.
Copyright © 2011 Delmar, Cengage Learning. ALL RIGHTS RESERVED. CHAPTER 2 Prefixes.
COLOURS.
Week 2 Book Chapter 1 RGB Color codes. 2 2.Additive Color Mixing RGB The mixing of “ light ” Primary: Red, Green, Blue The complementary color “ White.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
The Color Wheel Claire Heider The Primary Colors.
WEEK 3 Lecture 2 CSS TEXT AND FONT PROPERTY Copyright © Corporate Health and Consultancy Services Limited Web Developmen t 15.WD.1 Mildred Fakoya.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
Colors. Color of HTML Elements You can control the color of the following elements: You can control the color of the following elements: All text within.
Hexadecimal Codes 1. RGB Color Wheel 2 Before we begin Hexadecimal is a number system Based on using 0 – F to represent 0 – 15 Hex is used to represent.
COMP213 – Web Interface Design
CSS Table Properties.
Prefixes CHAPTER 2. 2 Prefixes Remember –Meaning of prefix does not change –Prefix does change meaning of the word –Not all medical words have a prefix.
CS 142 Lecture Notes: CSSSlide 1 CSS Rule body { font-family: Tahoma, Arial, sans-serif; color: black; background: white; margin: 8px; } Selector Declaration.
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
Homework Assignment You are going to research any artist of your choosing from any time period or genre. You are going to complete a one page double- spaced.
CS 174: Web Programming September 9 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
CSU - DCE Introduction to CSS CSS Colors - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Specifying Color Instructor: Joseph.
HTML & Color How to Use Color  Backgrounds-  Usually a light color is best  Should have a color based on a theme or plan  Can have a dark.
FRACTIONS & SHAPES BY:. How many of these are colored red? * out of *.
Monkey, Monkey In the Tree. Monkey, monkey in the tree Throw the yellow coconut down to me!
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,
ColorsColors. Color Keywords/Names 140 color keywords/names are defined in the HTML and CSS color specification –17 standard colors (HTML accepts 16 of.
Presentation Title Subtitle or Speaker, Role in Project, Institution Place Institution Logo Here.
Chapter 13 Colors & backgrounds.
CSS Layouts CH 13.
CSS Rule Selector Declaration Block Value Attribute Name body {
Tutorial 4 Topic: CSS 3.0 Li Xu
Watch Pete the Cat here:
ART HISTORY QUIZ #1 FRIDAY, NOVEMBER 6th.
Resistors (466) Chapter 14.
Subtitle or Speaker, Role in Project, Institution
Chapter 6 More CSS Basics Key Concepts
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
FOREGROUND COLOR h1 { color: DarkCyan;} h2 { color: #ee4e80;} p { color: rgb(100, 100, 90);} The three traditional ways to specify colors: Color name.
Colors/Color Words.
Subtitle or Speaker, Role in Project, Institution
Lightboard Template.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
Hexadecimal Binary Made Easier.
Cascading Style Sheets Color and Font Properties
Average Number of Photons
Colours.
Basics of Web Design Chapter 6 More CSS Basics Key Concepts
UNIT3 Colour.
Can I color yellow?. Can I color yellow?
SEEM4570 Tutorial 3: CSS + CSS3.0
The Bright Light By Yan Shan and Andre.
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Programming for webpages
What Color is it?.
Chapter 15, Images …a few points
BSI Symbols for Graphic Communication
Color Box Button - Gray Type : object Type : object Type : object
Presentation transcript:

COLORS & BACKGROUNDS CHAPTER 13

SPECIFYING COLORS Three common places where you specify color 1.Text color.box { color: blue; } 2.Background color.box { background-color: darkgray; } 3.Borders color.box { border: 1px solid red; } Context: Here is some content that will be in a box with blue text, darkgray background and a red border

SPECIFYING COLORS Five ways to specify color 1. Color name color: purple; 2. Hexadecimal 3 digit (#RGB) color: #F08; 3. Hexadecimal 6 digit (#RRGGBB) color: #F3008d 4. rgb function color: rgb(255, 0, 128); 5. rgba function color: rgb(255, 0, 128, 0.4);

HEXADECIMAL HEXDECIMAL F15 E14 D13 C12 B11 A color: #000Min color (black) color: #FFFMax color (white) color: #0F0Max green color: #00FMax blue color: #FF0Max yellow color: #CCCLight gray color: #003Dark blue color: #CCFLight blue

COLOR DEPTH 16 values of red X 16 values of greenX 16 values of blueX different colors

HEXADECIMAL HEXDECIMAL F0240 E0224 D0208 C0192 B0176 A color: #000000Min color color: #FFFFFFMax color color: #00FF00Max green color: #0000FFMax blue color: #FFFF00Max yellow color: #C0C0C0Light gray color: #000030Dark blue color: #C0C0F0Light blue

COLOR DEPTH 256 values of red X 256 values of greenX 256 values of blueX ,777,216 different colors

BEST WAY TO SPECIFY COLOR* *Dr. B’s opinion Use rgb with percentages: rgb(0%, 50%, 25%) Why? Intuitive and minimal memorization needed Don’t need to remember hexadecimal scale Don’t need to remember 0 – 255 scale Q: Why do you still need to study the other methods?

TRANSPARENCY 101 Opacity 1.0 indicates 100% opaque, i.e., cannot see through it at all. 0.0 indicates that it is completely transparent, i.e., invisible. rgba The a stands for alpha, which specifies transparency. Impacts only the thing that is being colored Values have the same meaning as opacity.