I mean, is there a way to do something like:
width: 92%;
left: (100-width)/2;
so I can change the width without care with the "left"?
obs. I don't want to know about other ways of doing this centering, like with magins=auto, I just want to know if I can use an css attribute as a value to other attribute. Thanks! :)
Not in pure CSS, no.
CSS precompilers like LESS offer it, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With