CSS
Css @Function And If(): Custom Functions And Inline Conditions
What it is: two new features that bring programming logic into CSS. @function lets you write your own reusable function. if() lets a property choose between values based on a…
How To Style A Sticky Header With Css Scroll-State Container Queries
What it is: scroll-state queries let CSS know if an element is currently stuck, snapped or scrollable. Before this you needed JavaScript with a scroll listener to add a class…
How To Use Css @Property To Animate Custom Properties And Gradients
What it is: normal CSS variables are just text, so the browser cannot animate them. With @property you tell the browser what type of value the variable holds, like a…
Css Viewport Units Dvh, Svh, Lvh And Logical Properties Explained
Two modern habits that make layouts work on mobile browsers and in any language direction.
Css Text-Wrap Balance, Pretty And Field-Sizing For Better Typography And Forms
Two small properties that fix common design problems with a single line of CSS.


