M
M
Maxim js2019-09-14 19:41:01
Adaptive design
Maxim js, 2019-09-14 19:41:01

How to achieve the same responsiveness of div blocks as with the "background-size: cover;" property for img?

5d7d15c9bd687261918237.jpeg
5d7d1e6c7f73e613673842.jpeg
when changing the screen resolution, blocks with the specified height and width in% slowly change their size relative to the center. How to make the blocks in relation to the center remain unchanged, but somehow go beyond the screen (in case of zooming out, for example)?
or so that the entire site is scaled as with the background-size: cover property; for img?
And another question) why do the colors that you take from Photoshop change hue when applied in the code?
thank!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Beetle, 2019-09-14
@Jukk

try bacground-size: 100%
because it should be in RGB(255,255,255)

F
FabiBoom, 2019-09-14
@FabiBoom


Or use a wrapper or throw a picture as a background.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question