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
MarkBoots3mo ago
yet, no problem to use negative values for the inset.
R.I.P
R.I.POP3mo ago
what about the rest of them paddding translate margin and the rest
Mannix
Mannix3mo ago
i don't think you can go negative in padding in margin and translate you can
R.I.P
R.I.POP3mo ago
is there a site or sth that wrote these ? or u talking from exprience
Jochem
Jochem3mo ago
you can check MDN for stuff like this, just look up the CSS property you're interested in
R.I.P
R.I.POP3mo ago
ok tnx its solved should i close it or its ok?
Jochem
Jochem3mo 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.POP3mo ago
gotu and tnx
Want results from more Discord servers?
Add your server