+ 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?
7 Respostas
+ 2
U can use both. It's up to u. But CSS is enough for this
+ 2
body {
min-width: 500px;
}
Is that what you meant?
+ 1
patos so.. can you show me how?
+ 1
Visyche I alreadty tried this. but it's not working.
+ 1
Idk, can you show me the Stylesheet? I'm not too professional but maybe i can help ya
+ 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">
+ 1
better to use css