Css Tag Name

Style Rules

Usage

Media Queries
@media all(min-width: 480px) }
control all properties and values of html elements once a certain width reached.
Style Tag
< style> < /style>
Container for the css style rules.
External Stylesheets
< link rel="stylesheet" type="text/css" href="style.css">
it's in a separate document - style.css. which contains style rules
Internal Stylesheets
< style> < /style>
These tags are in the webpage.
Pixcels, Ems, Percent
body {20px, 20ems, and 20% }
are all forms of measurement.
Width & Height
Increments of animation progression may be show in percentages or pixels.
Determines height & width of an element.
Box-Sizing
body {box-sizing:
border-box;}
Shows correct position after padding and margin added..
Margin
p {margin:20px;}
Margin adds space outside an element.
Padding
p {margin:20px;}
Padding adds space inside an element.
Color
p{color:white;} p{color:#fff;}.
Color names or hexcode values used to determine color.
CSS Positioning: Absolute
#cake {position: absolute; top: 20px; left: 20px;}.
Positions cake div 20px from top and 20 pixels from left.
CSS Positioning: Fixed
#cake {position: absolute; top: 20px; left: 20px;}.
similar to absolute positioning but scrolling won't move the div
CSS Positioning: Relative
#cake {position: fixed; top: 20px; left:20px;}.
the div is positioned x amount of pixels from its original location.
Box Shadow
Increments of animation progression may be show in percentages or pixels.
adds a shadow to an element.
Border Radius
Increments of animation progression may be show in percentages or pixels.
Rounds the corners of an element without adding images.
Opacity
Increments of animation progression may be show in percentages or pixels.
Determines opacity.