4 ms·
There is one good point in the comments: "MATH! We need math! 50% -5px It’s stupid having to do things like this in JS." Completely agree! It should be possibl
by yaix 15y ago
There is one good point in the comments: "MATH! We need math! 50% -5px It’s stupid having to do things like this in JS."
Completely agree! It should be possible to do this.
And please: vertical-align:center for any block element. Or is that in CSS3 and I am not aware of it?
- Twisol 15y agoYou can use calc (https://developer.mozilla.org/en/CSS/calc https://developer.mozilla.org/en/CSS/calc), but it isn't well supported.