- Debouncing and Throttling Explained Through Examples | CSS-Tricks
Debounce and throttle are two similar (but different!) techniques to control how many times we allow a function to be executed over time.
- Aligning text smartly in CSS
Here we are trying to achieve text-align: left when the text is more than one line in the given container.
This is very simple to achieve.
Now we want to make the same text align center if its well fitted in a single line.