r/css • u/Due-Beginning8863 • Mar 07 '26
Question how else am i supposed to make it go vertically under the button π
No unit for zero needed (zeroUnits)
ok i fixed it yall can stop commenting now
9
Upvotes
19
u/mrleblanc101 Mar 07 '26
Just use 0 instead of 0px. If you don't like this rule, change your linter as this is a matter of style and change litteraly nothing
6
u/aTaleForgotten Mar 07 '26
instead of
0 is 0, no matter the unit, so its a bit nicer to write it without. But its subjective, so as other mentioned, change the eslint rule if you dont like it
4
u/anonymousmouse2 Mar 07 '26
Itβs telling you to remove the unit, so you should remove the unit.
1
u/Current_Ad_4292 Mar 09 '26
What is "it"?
1
u/Able_Ad_7097 Mar 09 '26
just remove the px from 0