J
J
jslint2018-12-02 13:11:54
css
jslint, 2018-12-02 13:11:54

How to insert an image in the center?

I have a picture of a house/
The height of the picture is 600px;
width 400px
We need to make a block that will stretch in height if it has a lot of content.
those. you need to somehow take one line of the house and fill the entire expandable area of ​​\u200b\u200bthe block with it.
those. The block should consist of a roof from the foundation (its usual state)
if there is a lot of content in the block, then it consists of a roof, then there is a line that automatically fills the entire available area, and then the foundation.
I worked very little with the background, tell me pliz how to do it right?
5c03afe8ac8ae244713776.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny, 2018-12-02
@jslint

Oh, well ... 0_o
Cut the picture into 3 parts, a hat, a basement and a repeating strip between them. Then either “3 divas”, or after and before.
Well, or svg.

G
galkan, 2018-12-02
@galkan

Before there was a border-radius, rounding for buttons was done using the Sliding Doors method.
For example: https://webmascon.com/topics/coding/36a.asp.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question