N
N
nvanyuk092020-09-19 21:05:30
css
nvanyuk09, 2020-09-19 21:05:30

How to make blocks shrink evenly?

After 980px, when narrowing the browser window, the news blocks fly off and the text fits over them. The width of the container cannot be changed. How to calculate their width? How can I make them shrink evenly to a critical point of 768 px?

https://codepen.io/nvanyukova/pen/YzqOxvq

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem Zolin, 2020-09-20
@artzolin

Use the bootstrap grid . Or see how style classes work there and use them

T
twentytvvo, 2020-09-20
@twentytvvo

Initially, use alternatives to the px scale unit, such as em, px, pt, experiment so that text and boxes scale down proportionally to the size of the window and are not clearly tied to pixels.

S
Softlink, 2020-09-20
@Softlink

Use flexes , it's easier to live with them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question