re: CSS: Absolute center element VIEW POST


How's that better than the following? Just being curious as I always opt for the following if for some very specific reason flexbox is not the option πŸ˜‚:

  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;

One more CSS instruction I guess 🀣It seems clear and straightforward though, I liked it πŸ’ͺ

code of conduct - report abuse