Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="media-queries-example">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- <style id="jsbin-css">
- /* Demonstrational Styles */
- .container,
- aside,
- section {
- border-radius: 10px;
- }
- aside,
- section {
- border: 1px solid white;
- }
- span {
- font-family: monospace;
- font-size: 16px;
- color: white;
- border: 1px solid white;
- border-top-left-radius: 10px;
- padding: 0 3px 2px;
- }
- .container {
- background: #e0e0e0;
- }
- aside {
- background: #5197d5;
- }
- section {
- background: #fdd72a;
- }
- /* Layout Styles */
- aside,
- section {
- margin-right: 1.096%;
- }
- .container {
- width: 95vw;
- height: 50.13vh;
- padding: 1.096%;
- }
- aside {
- width: 33.3%;
- height: 100%;
- float: left;
- }
- section {
- width: 33.3%;
- height: 100%;
- float: left;
- }
- @media (max-width: 420px) {
- /* Demonstrational Styles */
- aside,
- section {
- height: 48%;
- margin-bottom: 1.096%;
- }
- /* Layout Styles */
- aside,
- section {
- float: none;
- width: auto;
- }
- }
- </style>
- </head>
- <body>
- <div class="container">
- <aside><span><aside></span></aside>
- <section><span><section></span></section>
- </div>
- <script id="jsbin-source-css" type="text/css">/* Demonstrational Styles */
- .container,
- aside,
- section {
- border-radius: 10px;
- }
- aside,
- section {
- border: 1px solid white;
- }
- span {
- font-family: monospace;
- font-size: 16px;
- color: white;
- border: 1px solid white;
- border-top-left-radius: 10px;
- padding: 0 3px 2px;
- }
- .container {
- background: #e0e0e0;
- }
- aside {
- background: #5197d5;
- }
- section {
- background: #fdd72a;
- }
- /* Layout Styles */
- aside,
- section {
- margin-right: 1.096%;
- }
- .container {
- width: 95vw;
- height: 50.13vh;
- padding: 1.096%;
- }
- aside {
- width: 33.3%;
- height: 100%;
- float: left;
- }
- section {
- width: 33.3%;
- height: 100%;
- float: left;
- }
- @media (max-width: 420px) {
- /* Demonstrational Styles */
- aside,
- section {
- height: 48%;
- margin-bottom: 1.096%;
- }
- /* Layout Styles */
- aside,
- section {
- float: none;
- width: auto;
- }
- }</script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement