Estelle Weyl
www.standardista.com
@estellevw
@standardista




Estelle Weyl · Standardista.com · @estellevw ·Press → key to advance. estelle.github.io/cssmastery/
Opacity is from CSS2
<div id="flakes"> <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> </div> <div class="snowman"></div>
CSS tells the browser how HTML content is to be presented to the user
External Style Sheet
<link href=“stylesheet” href=“path/file.css” />
Embedded Styles
<style> body {} </style>
Inline Styles
<p style=“color: black”>Lorem ipsum</p>
<link rel="stylesheet" media="screen" href="/205/205.css"type="text/css"/>
selectorA { property1: value1; property2: value2; } selectorB { property1: value3; property2: value4; }
selector:pseudo-class::pseudo-element { -vendor-property: value; } selector[attribute], selector ~ relation { property: -vendor-value; -vendor-property: -vendor-value; -vendor-property: weirdsyntax; }
p { margin: 40px; color: magenta; } input[type="search"] { border-radius: 5px; background-image: url(image/search.jpg); }
@at-rule { property: value; } @at-rule { selector { property: value; } selector2 { property: value; } }
WYSIWYG
Don't use word processing applications!!
CSS preprocessors add functionality additions like variables, nesting, and mixins (during development).