Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>title</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width, initial-scale=1>
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
- <![endif]-->
- </head>
- <style>
- /* Smartphones (portrait and landscape) ----------- */
- @media only screen
- and (min-device-width : 320px)
- and (max-device-width : 480px) {
- /* Styles */
- }
- /* Smartphones (landscape) ----------- */
- @media only screen
- and (min-width : 321px) {
- /* Styles */
- }
- /* Smartphones (portrait) ----------- */
- @media only screen
- and (max-width : 320px) {
- /* Styles */
- }
- /* iPads (portrait and landscape) ----------- */
- @media only screen
- and (min-device-width : 768px)
- and (max-device-width : 1024px) {
- /* Styles */
- }
- /* iPads (landscape) ----------- */
- @media only screen
- and (min-device-width : 768px)
- and (max-device-width : 1024px)
- and (orientation : landscape) {
- /* Styles */
- }
- /* iPads (portrait) ----------- */
- @media only screen
- and (min-device-width : 768px)
- and (max-device-width : 1024px)
- and (orientation : portrait) {
- /* Styles */
- }
- /* Desktops and laptops ----------- */
- @media only screen
- and (min-width : 1224px) {
- /* Styles */
- }
- /* Large screens ----------- */
- @media only screen
- and (min-width : 1824px) {
- /* Styles */
- }
- /* iPhone 4 ----------- */
- @media
- only screen and (-webkit-min-device-pixel-ratio : 1.5),
- only screen and (min-device-pixel-ratio : 1.5) {
- /* Styles */
- }
- </style>
- <style>
- body {
- font: normal 100% Helvetica, Arial, sans-serif;
- }
- h1 {
- font-family: Georgia, serif;
- font-size: 1.5em; /* 24px / 16px = 1.5em */
- }
- ul {
- font-size: 0.875em; /* 14px / 16px = 0.875em */
- }
- h1 {
- margin-left: 14.575%; /* 144px / 988px = 0.14575 */
- width: 70.85%; /* 700px / 988px = 0.7085 */
- }
- </style>
- /* images */
- img {
- max-width: 100%;
- height:auto;
- width: auto\9; /* ie8 */
- }
- <link rel="stylesheet" type="text/css"
- media="screen and (max-device-width: 480px) and (resolution: 163dpi)"
- href="some.css" />
- video {
- max-width: 100%;
- height: auto;
- }
- /* iframe embeded */
- .video-container {
- position: relative;
- padding-bottom: 56.25%;
- padding-top: 30px;
- height: 0;
- overflow: hidden;
- }
- .video-container iframe,
- .video-container object,
- .video-container embed {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
Advertisement
Add Comment
Please, Sign In to add comment