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?
Do not use absolute width and height. Instead, set all percentages. That is pretty much all you can do.
Minimize the use of static width. The browser will do most of the work for you.
Google. , CSS
Apart , , .
pt ( cm, in, mm, pc ex) CSS. em %.
pt
cm
in
mm
pc
ex
em
%
.
: width = "50%" width = "167px"
, , CSS3 Media Queries ( "Switchy McLayout" script, ), CSS ( ) .
Source: https://habr.com/ru/post/1710687/More articles:Which .NET class should be used to represent the subnet and its mask? - c #Как рассчитать процентильный ранг для точечных итогов за разные промежутки времени? - mathProblem with RtlValidateHeap - c ++How do you make this code more pythonic? - pythonКак узнать вызывающий класс? - javaExtract localization strings from Settings.bundle plists - iphoneFree Bug Tracking / Project Management with Visual Source Safe - visual-sourcesafeDistribution definition so that I can generate test data - rHow to extract lines from plist files for translation (localization)? - iphoneAndroid: how to create a custom button widget - androidAll Articles