I have a div inside a div.
The inside of the div is larger than its parent, so the usual procedure
margin-left: auto; margin-right: auto;
creates an inner div where the left edge of the child is aligned with the left edge of the parent.
When people answer this question, they use to search for the negative left edge. Is there a cleaner solution?
css
Anders lindΓ©n
source share