Answers for "min width css"

CSS
1

minimum width of different devices in html

body {
  background: white;    
}

@media screen and (min-width: 980px) /* Desktop */ {
  body {
    background: red;
  }
}

@media screen  and (max-width: 979px) /* Tablet */ {
  body {
    background: blue;
  }
}

@media screen and (max-width: 500px) /* Mobile */ {
  body {
    background: green;
  }
}
Posted by: Guest on April-30-2020
1

css media screen

@media (max-width: 991px){
    .mobile{
        display: block;
    }
}
Posted by: Guest on October-30-2020
0

html min width

@media (min-width: 1600px) {
	display: none;
}
Posted by: Guest on January-22-2021
1

min css

.content {
  /*Choose the smallest value between these two values at any time*/
  width:min(500px,70%);
  /*equivalent to */
  width:70%;
  max-width:500px;
}
Posted by: Guest on August-14-2021
0

min css

.container {  width: min(80ch, 100% - 2rem);  margin-right: auto;  margin-left: auto;}
Posted by: Guest on August-19-2021
0

minimum width of different devices in html

<meta name="viewport" content="width=device-width,initial-scale=1">
Posted by: Guest on April-30-2020

Browse Popular Code Answers by Language