Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resize Window

Tags:

html

I have a html page. I want to make sure that if I resize the window, the contents also get resized so as not to get scrolled horizontally. What can I do?


2 Answers

Don't use absolute widths and heights. Set all values to percentages instead. Thats pretty much all you can do.

like image 92
priestc Avatar answered Feb 22 '26 00:02

priestc


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

like image 42
AgileJon Avatar answered Feb 22 '26 01:02

AgileJon