11 Tweets 1 reads Mar 17, 2023
⚑A Deep-Dive into 𝗖𝗦𝗦 π—¦π—²π—Ήπ—²π—°π˜π—Όπ—Ώπ˜€ + π—¨π—»π—Άπ˜π˜€βš‘
A Thread πŸ§΅β‡©
✧ CSS concepts covered in this thread πŸ§΅β‡©
- All CSS Selectors
- CSS Units Explained + Cheatsheet
- CSS Variables
- CSS Variables Scope
Let's go!! ⇩
πŸ“Œ CSS Selectors
First, let's go with the basic ones:-
- Type selector
- Class selector
- id selector
⇩
✧ Now as you have learned about the basic ones let's get into some advanced stuff.
- Attribute selector ⇩
✧ Attribute selector is good but we have some more that can help us to save a lot of time.
- Universal selector
- Grouping selector
- Compound selector
⇩
✧ Now if you are enjoying we have a final & more advanced selector:
⇨ Combinators - allow you to target specific elements based on their relationship to other elements in the HTML document.
⇨ There are 4 types
- Descendant
- Child
- General sibling
- Adjacent sibling
⇩
πŸ“Œ CSS Units ⇩
β–Ή CSS has several different units for expressing a length.
β–Ή Many CSS properties take "length" values, such as width, margin, padding, font-size, etc.
β–Ή Length is a number followed by a unit, such as 10px, 2em, etc.
✧ All CSS Units Cheatsheet ⇩
πŸ“Œ What are CSS Variables?
β–Ή CSS Variables [custom properties] are entities defined by CSS authors that contain specific values to be reused throughout a document.
β–Ή They are set using custom property notation (e.g., --main-color: black;) and accessed using var() function.
✧ Global Scope π˜ƒπ˜€ Local Scope in CSS Variables βš”
That's it for this thread. Hope you like it. πŸ™ŒπŸΌ
- Hii I'm Aakash. πŸ‘‹πŸ½
- Sharing my journey and learnings. πŸš€
If you liked it, then you can follow me, @Aakash_codes βœ“ for more such content & resources.
Thanks for the support.πŸ’œ

Loading suggestions...