Alex Posted on Oct 30, 2020 What are the most interesting HTML/JS/DOM/CSS hacks that you learn in the year? Top comments (2) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Ampla Network Ampla Network Ampla Network Follow Location UAE Joined Sep 21, 2020 • Oct 30 '20 • Edited on Oct 30 • Edited Dropdown menu Copy link Hide Truncate small numbers without relying to the Js Engine. 2.78 >> 0 // = 2 // massively used in videogame coding // to avoid half pixel antialiasing Enter fullscreen mode Exit fullscreen mode Collapse Expand manish srivastava manish srivastava manish srivastava Follow Director & CEO, GDP CHURN (P) Ltd. Loves coding . Supports open source by funding. Email manishfoodtechs@gmail.com Location India Work Director at Gdp churn pvt ltd Joined Aug 31, 2019 • Oct 30 '20 Dropdown menu Copy link Hide CSS: calc(12px + (100vh -360px) /280) I learnt we can use formula in css. Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Truncate small numbers without relying to the Js Engine.
CSS: calc(12px + (100vh -360px) /280)
I learnt we can use formula in css.