Answer the question
In order to leave comments, you need to log in
How to remove padding?
The problem of all problems)
Tell me what to do padding and margin is set to 0 , but for some reason there is still an indent on the right side.
Whoever tells how to do it in the center and without this paddinga, thank you very much!).
Answer the question
In order to leave comments, you need to log in
Container - block, default blocks are 100% width regardless of content.
In this case, you can make inner elements with display: inline-block; and set the ancestor to text-align:center
2 option to make the parent block display:inline-block; then its width will not be 100% but will depend on the width of the descendants
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question