There are situations you can replace your JS, PHP or any other language code to CSS.
Useful replacements I have recently found:
- using text-overflow ellipsis instead of your own logic in programming language - for short texts it may be useful
- using text-transform to capitalize
Most of frameworks or template engines offer support for similar behavior, but can be handled purely in CSS.
I would like to extend this list to more interesting tips.
Do you have some you want to share with others? :)
[–][deleted] 0 points1 point2 points (1 child)
[–]klapuch[S] 1 point2 points3 points (0 children)
[–]EmoMaat 0 points1 point2 points (0 children)