Answer the question
In order to leave comments, you need to log in
How to make it so that a centered svg image with equal indents is displayed at all resolutions?
An svg image
is set as background in the block . How to make it so that a centered image is displayed, regardless of the size of the devices, while the indents remain constant and the image does not go beyond the borders? fiddle
<div class="rectangle"></div>
<div class="work-scheme"></div>
<div class="rectangle"></div>
.work-scheme {
background: url(http://a-lot-of-money.ru/wp-content/uploads/work-scheme.svg) no-repeat;
background-size: cover;
background-position: 50% 50%;
min-height: 258px;
height: 1px;
display: block;
margin: 0 auto;
}
.rectangle {
background-color: red;
height: 10px;
}
background-size: cover;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question