Sjors Wijsman
Aug 18, 2021

--

I find max-width combined with an auto margin easier to understand and work with (it also seems a little more "semantically" correct), although you could definitely achieve a similar result with padding-inline. Max-width also enjoys wider support for browsers compared to padding-inline.

--

--

Sjors Wijsman
Sjors Wijsman

Written by Sjors Wijsman

Freelance Frontend Developer. Studied Communication & Multimedia Design at HvA.

Responses (1)