N
N
neulwert2020-04-17 16:54:21
css
neulwert, 2020-04-17 16:54:21

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

The code below, you need to make indents for the inscriptions, but at the same time keep the size of the background:

https://jsfiddle.net/dxm94hry/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
Froggyweb, 2020-04-17
@Froggyweb

For this, the .container or .wrapper class with certain properties is used everywhere. See how it's done in bootstrap for example.

T
Type Programmer, 2020-04-17
@Oleg2002pr

There is no code. Try to indent only all tags with text (h1, h2.. span, p), it might help)

S
SOTVM, 2020-04-17
@sotvm

<body style="background: url(image.png)">
<div style="padding:100px;">
  ваш код бла-бла-бла
</div>
</body>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question