N
N
Nicholas Komarov2015-09-23 01:07:01
css
Nicholas Komarov, 2015-09-23 01:07:01

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!).
e86a4f26a8fe4f669e1e801755cb0d18.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andr'U Sender, 2015-09-23
@GloomySpodgeBob

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 question

Ask a Question

731 491 924 answers to any question