Css Notes
Css Notes
CSS NOTES
FOR
BOOTCAMP
UNDERSTANDING CSS
UNDERSTANDING LINKING
INTERNAL STYLESHEET
NOTES
EXTERNAL STYLESHEET
INLINE STYLES
OUTPUT
OUTPUT
NOTES
1. Pixels (px):
2. Percentages (%):
OUTPUT
NOTES
MARGIN
OUTPUT
NOTES
PADDING
OUTPUT
NOTES
1. BACKGROUND-IMAGE:
This property specifies the image that will be used as the
background of an element.
2. BACKGROUND-SIZE:
This property defines how the background image is sized
and positioned within the element.
3. BACKGROUND-POSITION:
This property specifies the starting position of the
background image within the element's content box.
OUTPUT
NOTES
OUTPUT
NOTES
ABSOLUTE POSITIONING
When you use position: absolute; it's like taking that
element out of the regular lineup of elements on the
webpage.
You can use top, right, bottom, and left to tell this
element where to go. But unlike position: relative;, these
directions are measured from the edges of the nearest
parent that's not just flowing normally
NOTES
OUTPUT
NOTES
UNDERSTANDING FLEXBOX
Flexbox is a powerful and versatile layout model in CSS
that makes arranging elements on a web page much
easier
You have control over how the flex items distribute
themselves within the container and how they align
relative to each other and the container itself.
EXAMPLE
CREATING THE STRUCTURE BEFORE IMPLEMENTING
FLEXBOX
NOTES
USING FLEX-DIRECTION
NOTES