View on GitHub

reading-notes

Reading notes for Code 102.

CSS

Chapter 10

Chapter 11 - Color

color

contrast and opacity

    body {
background-color: #C8C8C8;
background-color: hsl(0,0%,78%);}
    p {
background-color: #ffffff;
background-color: hsla(0,100%,100%,0.5);}

EXAMPLE of COLOR ADDED

<!DOCTYPE html>
<html>
<head>
 <title>Color</title>
 <style type="text/css">
 body {
 background-color: silver;
 color: white;
 padding: 20px;
 font-family: Arial, Verdana, sans-serif;}
 h1 {
 background-color: #ffffff;
 background-color: hsla(0,100%,100%,0.5);
 color: #64645A;
 padding: inherit;}
 p {
 padding: 5px;
 margin: 0px;}
 p.zero {
 background-color: rgb(238,62,128);}
 p.one {
 background-color: rgb(244,90,139);}
 p.two {
 background-color: rgb(243,106,152);}

rules

<= Back