✍️ Web Development Tips:
03. CSS Get the Scrollbar Width
The scrollbar width is obtained using container queries. Since it is defined as a variable, it can be accessed from anywhere using var().
✍️ Web Development Tips:
02. CSS Converting Unit-Based Strings to Numbers
You can convert unit-based strings such as rem, em, or vw into numeric px values by stripping the unit.
✍️Web Development Tips:
01. CSS Shorthand for the Root Element Selector
When the & symbol, which is normally used in nested CSS syntax, is used on its own, it refers to the root element.