H
H
honeydrums2019-12-05 20:12:57
css
honeydrums, 2019-12-05 20:12:57

How to teach elements to scale relative to block sizes?

Hey!
There is a grid grid of five blocks. Inside each block there is a background image, a button, text, decorative elements. When you change the screen size in the console, the content of the blocks, of course, either decreases or crawls out of the block boundaries.
How to teach these same elements to change their size when scaling the page? There are a lot of elements, media queries are swept aside - an increase in css on such a scale is not welcome.
What assumptions, ideas, methods do you have?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay, 2019-12-05
@nickolyashka

Use relative values, like percentages or vw and vh screen height and width values. Using rem values ​​for font or size blocks will also help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question