Recently, CSS has supported "logical" direction based properties for margin, padding, border, etc!
Previous to this, we were able to define properties based on physical directions like left, right, etc. This was a problem when different writing modes come into play, such as Arabic which is written from right to left, or traditional Chinese, Japanese, which are written from top to bottom.
👉 These new properties automatically adjust to the writing mode without the need for media queries.
"block" indicates main axis of writing mode (top to bottom for English)
"inline" indicates the cross axis of the writing mode (left to right for English)
You can combine this to create different properties for margin, padding, border, size and inset
👉 margin-block-end
👉 padding-inline
👉 border-inline-start
👉 inline-size
👉 block-size
✨ This also has the benefit that it provides shorthands like margin-inline which sets both left and right margin
Previous to this, we were able to define properties based on physical directions like left, right, etc. This was a problem when different writing modes come into play, such as Arabic which is written from right to left, or traditional Chinese, Japanese, which are written from top to bottom.
👉 These new properties automatically adjust to the writing mode without the need for media queries.
"block" indicates main axis of writing mode (top to bottom for English)
"inline" indicates the cross axis of the writing mode (left to right for English)
You can combine this to create different properties for margin, padding, border, size and inset
👉 margin-block-end
👉 padding-inline
👉 border-inline-start
👉 inline-size
👉 block-size
✨ This also has the benefit that it provides shorthands like margin-inline which sets both left and right margin
👍7🔥5❤2
Channels that you MUST follow in 2024:
✅ @getjobss - Jobs and Internship Opportunities
✅ @englishlearnerspro - improve your English
✅ @datasciencefun - Learn Data Science and Machibe Learning
✅ @crackingthecodinginterview - boost your coding knowledge
✅ @sqlspecialist - Data Analysts Community
✅ @programming_guide - Coding Books
✅ @udemy_free_courses_with_certi - Free Udemy Courses with Certificate
✅ @getjobss - Jobs and Internship Opportunities
✅ @englishlearnerspro - improve your English
✅ @datasciencefun - Learn Data Science and Machibe Learning
✅ @crackingthecodinginterview - boost your coding knowledge
✅ @sqlspecialist - Data Analysts Community
✅ @programming_guide - Coding Books
✅ @udemy_free_courses_with_certi - Free Udemy Courses with Certificate
👍7❤3
You can now find free JavaScript Resources on WhatsApp as well
👇👇
https://whatsapp.com/channel/0029VavR9OxLtOjJTXrZNi32
👇👇
https://whatsapp.com/channel/0029VavR9OxLtOjJTXrZNi32
❤5
Javascript is the most widely used scripting language used on server side and client side. While to start learning Javascript , you need a proper path for better understanding of popular frameworks like Angular or Reactjs.. Here's a roadmap to learn Javascript..
Hope you liked it
❤10👍4