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

css max width media

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

media min height css

@media only screen and (min-height: 500px) {
  /* place here CSS for when the screen is more than 500px tall */
  .card {
    background: #111;
  }
}
Comment

media query for max width and height

@media only screen and (max-width: 535px), screen and (max-height:550px ) {
}
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 :: text underline hover css 
Css :: why tr border not showing 
Css :: customize highlight color website 
Css :: make all images same size css 
Css :: how to make header always on top in html 
Css :: css transform y 
Css :: css background color 
Css :: tailwind absolute center 
Css :: website make text not highlightable 
Css :: css smooth text shadow 
Css :: ufw allow from subnet 
Css :: media query all devices 
Css :: input checkbox size css 
Css :: css transparent input text box 
Css :: remove all css styles from element 
Css :: background image fill div 
Css :: css add required asterisk after 
Css :: react app css add background image 
Css :: autocomplete widget set z-index 
Css :: css disable mouse events 
Css :: html dim entire screen 
Css :: blazor spinner css in wwwroot/css/site.css 
Css :: associate checkbox with label 
Css :: perimeter around my background image 
Css :: css text stroke 
Css :: how to remove default styling of a tag 
Css :: elementor sticky keep within column 
Css :: css html unterstreichen 
Css :: how to scale down background image in css 
Css :: padding shorthand 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =