CSS-workshop 1
CSS-workshop 1
CSS
SUMMAR
Y
1 Intro to CSS
2 Intro to Flexbox
All HTML elements can be considered as boxes. The CSS box model is
essentially a box that wraps around every HTML element.
It consists of: margins, borders, padding, and the actual content.
MARGIN & PADDING
Padding Margin
Intro to Flexbox
▪ A set of CSS properties activated by the magic word: “Display: flex”
▪ Transform children elements into flexible items inside their parent
▪ Manage their position in the flexbox container
Parent
child 1
child 2
child 3
child 4
End of
Parent
▪ To recap, the Flexbox
properties can affect :
What is Responsive
Web Design?
CSS Media
Queries
The @media rule, makes it possible to define
different style rules for different screen sizes.
SYNTAX
@media TYPE and (WIDTH:(min or max
or both)) {
// your normal CSS code
}
Example