Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
  }
}
Source by learn.shayhowe.com #
 
PREVIOUS NEXT
Tagged: #mobile #media #queries
ADD COMMENT
Topic
Name
6+3 =