is it bad to use -numbers in margin padding insets translate and other stuff

hi guys i was wondering to know this
top: 50%;
left: 50%;
translate: -50% -50%;
top: 50%;
left: 50%;
translate: -50% -50%;
is bad? so instead of that i wanna use
inset: -8px;
padding: 8px;
inset: -8px;
padding: 8px;
so the result is the same and its for a div::before/after so i can see it when its absoloute and under the main div I just wanna know is it wrong or ok?
8 Replies
MarkBoots
MarkBoots7d ago
yet, no problem to use negative values for the inset.
R.I.P
R.I.P7d ago
what about the rest of them paddding translate margin and the rest
Mannix
Mannix7d ago
i don't think you can go negative in padding in margin and translate you can
R.I.P
R.I.P7d ago
is there a site or sth that wrote these ? or u talking from exprience
Jochem
Jochem7d ago
you can check MDN for stuff like this, just look up the CSS property you're interested in
R.I.P
R.I.P7d ago
ok tnx its solved should i close it or its ok?
Jochem
Jochem7d ago
you can if you want, but it's fine to leave it with the solved tag on. Just don't delete it so others can still find it if they have the same question
R.I.P
R.I.P7d ago
gotu and tnx
Want results from more Discord servers?
Add your server