Search
 
SCRIPT & CODE EXAMPLE
 

CSS

media queries on mobile

@media only screen and (max-width: 600px) {
	...your css here and you're good to go!
}
Comment

css media queries mobile first

@media screen  and (min-width:700px) {
    
} //this means the above media queriy will apply if the screen has a minimum screen width
 //of 700px., meaning screens with screen sizes of 700px and above will be affected by the above media query
Comment

mobile first media queries

@media screen and (min-width: 400px)  {...}
@media screen and (min-width: 600px)  {...}
@media screen and (min-width: 1000px) {...}
@media screen and (min-width: 1400px) {...}
Comment

mobile first media queries

/* Default media */
body {
  background: #ddd;
}
/* Media for larger devices */
@media screen and (min-width: 800px) {
  body {
    background-image: url("bg.png") 50% 50% no-repeat;
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: css flip animation 
Css :: Override Inline Styles with CSS 
Css :: background shorthand 
Css :: pseudo class vs pseudo element 
Css :: css outline offset 
Css :: import font css from url 
Css :: add arrow in select css 
Css :: flexbox properties css 
Css :: scss responsive container 
Css :: css color black 
Css :: no outline css 
Css :: css overflow-y not working 
Css :: how to select child when hover on parent element css 
Css :: box shadow to table cell css 
Css :: padding css 
Css :: background color using css 
Css :: textarea scale to content 
Css :: attribute selectors css 
Css :: flex grow 
Css :: how to transition text color css 
Css :: vuetify width of textfield 
Css :: change order columns bootstrap 
Css :: image to fill container size 
Css :: Load hidden image to HTML 
Css :: css responsive image 
Css :: @font-face 
Css :: angular css path to assets 
Css :: css button style rectangle 
Css :: CSS cloud shape 
Css :: scss mixin 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =