Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media max height css

@media only screen and (max-height: 500px) {
  /* place here CSS for when the screen is less than 500px tall */
  .card {
    width: 100%;
  }
}
Comment

media max width css

@media only screen and (max-width: 1000px) {
  /* place here CSS for when the screen is less than 1000px wide */
  .card {
    width: 100%;
  }
}
Comment

css max width media

@media only screen and (max-width: 600px) {
  // styles go here 
}
Comment

css media query max width

/*
 # ref: https://www.w3schools.com/css/css3_mediaqueries_ex.asp
 - On screens that are 992px or less, set the background color to blue 
 - Smaller screens
*/
@media screen and (max-width: 400px) {
  body {
    background-color: blue;
  }
}

/* 
 - On screens that are 992px or more, set the background color to red
 - Larger screens
*/
@media screen and (min-width: 992px) {
  body {
    background-color: red;
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: @font-face css 
Css :: Link design like a Button" 
Css :: font roboto css 
Css :: difference between private key and private key ssh 
Css :: html css navbar with dropdown 
Css :: css float top 
Css :: object-position 
Css :: transition timing functions 
Css :: image with background color css 
Css :: how to create a shape in css 
Css :: center things with css 
Css :: background shrinks when responsive 
Css :: css good border color 
Css :: over to remove padding css 
Css :: SassError: Top-level selectors may not contain the parent selector "&" 
Css :: input type file placeholder 
Css :: add notification in css 
Css :: scss ::after 
Css :: css move inline image up 
Css :: how to center an overlay button using css transform and translate 
Css :: font awesome center icon vertically and horizontally 
Css :: scss generate random color 
Css :: taille texte css 
Css :: why margin is not working on label css 
Css :: css remove 
Css :: using inline styling in React 
Css :: css hover affect other item 
Css :: loading bar css 
Css :: sass import 
Css :: style textarea in css 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =