CSS
STEP 3 — Learn CSS Basics (Start Styling Websites)
Now that you finished HTML, the next thing is CSS.
Start from the fundamentals:
✅ 1. CSS Syntax
selector { property: value; }
✅ 2. How to add CSS
Inline CSS
Internal CSS (inside <style>)
External CSS (best method)
✅ 3. Colors
color
background-color
rgb(), hex, hsl
✅ 4. Text Styling
font-size
font-weight
font-family
text-align
text-decoration
text-transform
line-height
letter-spacing
✅ 5. Box Model (MOST IMPORTANT)
Every element has:
margin
border
padding
content
Learn:
margin vs padding
margin: auto
box-sizing: border-box
✅ 6. Display Types
display: block
display: inline
display: inline-block
display: none
✅ 7. Width & Height
px
%
vh, vw
min-width, max-width
✅ 8. Background Properties
background-image
background-size
background-repeat
background-position
background-attachment
✅ 9. Borders & Radius
border
border-radius (for rounded corners)
✅ 10. CSS Positioning
static
relative
absolute
fixed
sticky
✅ 11. Flexbox (VERY IMPORTANT)
display: flex
justify-content
align-items
flex-direction
gap
⭐ After this → You will be able to design proper websites.
Comments
Post a Comment