0% found this document useful (0 votes)
18 views

Css

The document defines CSS properties for width/height, padding, margin, border, color, position, transition, and media queries. It explains that width/height can be set to auto, length, percent, initial or inherit. Padding, margin and border can be set to length, percent or inherit. Border style can be dotted, dashed, solid, double, groove, ridge, inset, outset or none. Position can be set to static, relative, fixed, absolute or sticky. Transitions allow properties to change values over time. Media queries allow styling based on screen size.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Css

The document defines CSS properties for width/height, padding, margin, border, color, position, transition, and media queries. It explains that width/height can be set to auto, length, percent, initial or inherit. Padding, margin and border can be set to length, percent or inherit. Border style can be dotted, dashed, solid, double, groove, ridge, inset, outset or none. Position can be set to static, relative, fixed, absolute or sticky. Transitions allow properties to change values over time. Media queries allow styling based on screen size.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

box-sizing: border-box;

WIDTH/HEIGHT

auto - This is default. The browser calculates the height and width
length - Defines the height/width in px, cm, etc.
% - Defines the height/width in percent of the containing block
initial - Sets the height/width to its default value
inherit - The height/width will be inherited from its parent value

PADDING

length - specifies a padding in px, pt, cm, etc.


% - specifies a padding in % of the width of the containing element
inherit - specifies that the padding should be inherited from the parent element

MARGIN

auto - the browser calculates the margin


length - specifies a margin in px, pt, cm, etc.
% - specifies a margin in % of the width of the containing element
inherit - specifies that the margin should be inherited from the parent element

BORDER

border-style

dotted - Defines a dotted border


dashed - Defines a dashed border
solid - Defines a solid border
double - Defines a double border
groove - Defines a 3D grooved border. The effect depends on the border-color value
ridge - Defines a 3D ridged border. The effect depends on the border-color value
inset - Defines a 3D inset border. The effect depends on the border-color value
outset - Defines a 3D outset border. The effect depends on the border-color value
none - Defines no border
hidden - Defines a hidden border

CORLOR

dotted - Defines a dotted border


dashed - Defines a dashed border
solid - Defines a solid border
double - Defines a double border
groove - Defines a 3D grooved border. The effect depends on the border-color value
ridge - Defines a 3D ridged border. The effect depends on the border-color value
inset - Defines a 3D inset border. The effect depends on the border-color value
outset - Defines a 3D outset border. The effect depends on the border-color value
none - Defines no border
hidden - Defines a hidden border

POSITION

static
relative
fixed
absolute
sticky
TRANSITION

transition
transition-delay
transition-duration
transition-property
transition-timing-function

transition: width 2s;

@keyframes example {
from {background-color: red;}
to {background-color: yellow;}
}

@media screen and (min-width: 480px) {


body {
background-color: lightgreen;
}
}

You might also like