There is a div block, which contains the main information of the site (text, images). I need to indent a block. Those. so that the content does not start from the very edges of the block. Used padding: 20px; But this property only increases the block, and does not "squeeze" the space for the contents in this block.
|
1 answer
read about box-sizing
.content { box-sizing: border-box; padding: 20px; } - Thank you, absolutely what I needed! All text is indented with a margin of div. And it was along with the edge! - Yevgeny Rakintsev
- Hooray!!! Thank. It is displayed as I need))) - Andriy Rogalsky
|
Protected by member Qwertiy ♦ Apr 22 at 18:53 .
Thank you for your interest in this issue. Since he collected a large number of low-quality and spam responses, which had to be deleted, now it’s necessary to have 10 reputation points on the site (the bonus for account association is not counted ).
Maybe you want to answer one of the unanswered questions ?