I want to make a div that is
80vw if 80vw > 1000px
1000px if 80vw <= 1000px and if 1000px <= 100vw
100vw if 1000px > 100vw
I tried the following:
div {
width: 80vw;
min-width: 1000px;
max-width: 100vw;
}
This would work if max-width overrides min-width, but it does not: Why doesn't max-width override min-width?
I know there is a simple solution using @media, but I want to know if this is possible with just width, min-width, and max-width.