Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Media Queries

When you looked at the preceding code, the first thing that you probably noticed is that the very fluid vintage newspaper layout that was programmed consists of only two relatively small files of code. Five to seven years ago, in a land where web developers had to wear two different hats—web developer hat and Internet Explorer 6 hacker hat—creating a layout such as this would have been a ridiculously cumbersome task that would have most likely consisted of two, if not more, completely different layouts. Each layout would have had to be its own set of HTML and CSS files, displayed to the client by some backend server code that looked up your device’s user agent string. Mobile devices would have been served the HTML and CSS templates designe....


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint