How to implement the indentation from the edges of the browser for all html elements?

The code below, you need to make the indentation for labels, but keep the size of the background:

https://jsfiddle.net/dxm94hry/
April 19th 20 at 12:33
4 answers
April 19th 20 at 12:35
April 19th 20 at 12:37
This is used throughout the class .container or .wrapper with defined properties. Look how it is done in the bootstrap for example.
April 19th 20 at 12:39
Code no. Try to make indents only of all tags with the text (h1, h2.. span, p), may help)
Code added. I think this method will break the page because the text will get indents from each other or from other elements, but this is not necessary, from crave of the browser. - wiley.Yun commented on April 19th 20 at 12:42
@wiley.Yun, then make a div which is added inside the bloc. In the end, will be the main diva (e.g. header) will backround, and all the elements in the block will be indented at the edges only. Just from the beginning not quite understand the question) - Blair_Mante52 commented on April 19th 20 at 12:45
April 19th 20 at 12:41
<body style="background: url(image.png)">
<div style="padding:100px;">
 your code blah-blah-blah
</div>
</body>

Find more questions by tags CSS