سؤال

How can I size a DIV with a vw units on the upper size BUT assure a minimum width of at least 100px?

.container {
    min-width:1000px;
    width: 85vw;
}

Is not working...

هل كانت مفيدة؟

المحلول 2

The original code worked fine:

.container {
    min-width:1000px;
    width: 85vw;
}

نصائح أخرى

maybe you forgot this

 <meta name="viewport" content="width=device-width, initial-scale=1.0">
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top