Resize Window

I have an html page. I want to make sure that if I resize the window, the content will also be resized so as not to scroll horizontally. What can I do?

+3
source share
6 answers

Do not use absolute width and height. Instead, set all percentages. That is pretty much all you can do.

+7
source

Minimize the use of static width. The browser will do most of the work for you.

+2
source

Google. , CSS

+2

Apart , , .

pt ( cm, in, mm, pc ex) CSS. em %.

+2

.

: width = "50%" width = "167px"

+1
0

Source: https://habr.com/ru/post/1710687/


All Articles