Linkbait! Get yer linkbait!
performance.now()
coarser will solve this problem as well.calc()
. Something like
element { margin-left: calc(100px + counter(item)); counter-increment: item; }Problem:
counter(item)
is a string, and we want a number, or a way to append a unit such as px
.Journalism that is engineered to be viral, to be liked or picked by an algorithm is not journalism, it’s marketing.
This is the blog of Peter-Paul Koch, web developer, consultant, and trainer.
You can also follow
him on Twitter or Mastodon.
Atom
RSS
If you like this blog, why not donate a little bit of money to help me pay my bills?
Categories: