Escolar Documentos
Profissional Documentos
Cultura Documentos
CSS
The web beauty
What is CSS?
Box model
Write Process
Selectors
Linking with HTML
Rules
Our test page
Font rules
Syntax
Background rules
Colors
Box Rules
Sizes
What is CSS?
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
Selector2 {
Rule1: value;
Rule2: value;
}
Selector2 {
Rule1: value;
Rule2: value;
}
Colors
RGB( r , g , b )
r,g,b: the value of Red,Green,Blue components
It takes 1 byte each so the value range is 0:255
Ex: rgb(255,0,0) rgb(0,255,0) rgb(0,255,255)
#rgb
r,g,b: the value of components in Hexadecimal
The values range from 00:FF
Ex: #FF0000 #00FF00 #00FFFF
Sizes
Margin: top,bottom,left,right
Padding: top,bottom,left,right
Border: top,bottom,left,right
Thank You