Forum Moderators: not2easy
The media query syntax allows for the creation of rules that can be applied depending on device characteristics.
@media (query) {
/* CSS Rules used when query matches */
}
While there are several different items we can query on, the ones used most often for responsive web design areandmin-width, max-width, min-height.max-height
/* CSS Rules used when query matches */ : <link rel="stylesheet" media="(max-width: 640px)" href="max-640px.css">
<link rel="stylesheet" media="(min-width: 640px)" href="min-640px.css">
<link rel="stylesheet" media="(max-height: 800px)" href="short-page.css">
<link rel="stylesheet" media="(min-height: 800px)" href="tall-page.css"> diplay: none; I can't figure out how they're doing it
when the user has already scrolled
The snag to "min-height" or similar is that it's only meaningful if the page content has a knowable height. That means setting all text to a fixed pixel size, and also forcing a width on all content (because page width determines the number of lines in longer text blocks). You probably don't want to do that.
some sites, some pages
only meaningful if the page content has a knowable height
just not snooping hard enough
has "display: none;" on a page longer than 800px
Google for a bookmarklet called 'visual event'