R
R
Roman Polezhaev2020-11-12 19:43:37
css
Roman Polezhaev, 2020-11-12 19:43:37

How to make an adaptive background?

Good afternoon everyone, I'm learning the science of website layout, and I have questions, so I ask you not to throw too many slippers =)
1) There are two blocks on the page, they are 1140px wide, how to properly implement the background for the entire width of the screen? I implemented it like this - https://codepen.io/polezhaevr/pen/bGeOvrd
5fad63db833ef126793887.png

2) I made a block with a search, it seems normal, BUT! Why doesn't it compress when the resolution is changed, while the other two compress? Also, I am attaching the code to the block with the search engine

https://codepen.io/polezhaevr/pen/bGeOvrd

5fad786a9badd954405781.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question