+ 3

How can I set the minimum size of window?

I see webpages that have the minimum window size of 400px - 500px (width), is that with JS or CSS? how can I do it?

2nd Sep 2018, 3:27 PM
Abdou
7 odpowiedzi
+ 2
U can use both. It's up to u. But CSS is enough for this
2nd Sep 2018, 9:28 PM
patos
patos - avatar
+ 2
body { min-width: 500px; } Is that what you meant?
3rd Sep 2018, 7:06 AM
Ooflamp
Ooflamp - avatar
+ 1
patos so.. can you show me how?
2nd Sep 2018, 10:23 PM
Abdou
+ 1
Visyche I alreadty tried this. but it's not working.
3rd Sep 2018, 10:31 AM
Abdou
+ 1
Idk, can you show me the Stylesheet? I'm not too professional but maybe i can help ya
3rd Sep 2018, 11:27 AM
Ooflamp
Ooflamp - avatar
+ 1
html, body { width: 100%; min-width: 400px; } + add this to your html code <meta name="viewport" content="width=device-width, initial-scale=1.0">
3rd Sep 2018, 11:34 AM
Ooflamp
Ooflamp - avatar
+ 1
better to use css
3rd Sep 2018, 12:27 PM
Aarav Raj
Aarav Raj - avatar