Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- +<html lang="en">
- + <head>
- + <title>module2-solution</title>
- + <meta charset="utf-8">
- + <meta name="viewport" content="width=device-width, initial-scale=1">
- +<style>
- +/********** base style **********/
- +* {
- + box-sizing: border-box;
- +}
- +body {
- + font-family: sans-serif;
- + margin: 0;
- + font-size: 16px/18px;
- +}
- +
- +h1{
- + text-align: center;
- + font-size: 175%;
- + margin: 0;
- + margin-top: 25px;
- + margin-bottom: 20px;
- + text-shadow: 2px 2px 10px #bbb;
- + color: #191922;
- +}
- +h2 {
- + display: inline-block;
- + border: 1px solid black;
- + padding: 5px;
- + font-size: 125%;
- + width: 150px;
- + text-align: center;
- + margin-top: -13px;
- + margin-bottom: 0;
- + position: absolute;
- + right: -1px;
- + top: 12px;
- + color: #fff;
- +}
- +.chicken {
- + background-color: #ff8c38;
- +}
- +.chicken:hover {
- + background-color: #fff;
- + color: #ff8c38;
- + cursor: pointer;
- +}
- +.beef {
- + background-color: #913232;
- +}
- +.beef:hover {
- + background-color: #fff;
- + color: #913232;
- + cursor: pointer;
- +
- +}
- +.sushi {
- + background-color: #369818;
- +}
- +.sushi:hover {
- + background-color: #fff;
- + color: #369818;
- + cursor: pointer;
- +}
- +
- +
- +.section {
- + background-color: #ebebeb;
- + border: 1px solid black;
- + position: relative;
- + min-height: 200px;
- + margin-right: 15px;
- + margin-left: auto;
- + margin-bottom: 15px;
- + padding: 20px;
- + padding-top: 35px;
- + box-sizing: border-box;
- + min-width: 300px;
- + overflow: hidden;
- +
- +}
- +
- +
- +/************* Responsive framework *************/
- +.row {
- + width: 100%;
- + margin: 0;
- + padding: 15px;
- +
- +}
- +/************* Desktop Only *************/
- +@media (min-width: 992px) {
- + .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12{
- + float: left;
- + }
- + .col-lg-1 {
- + width: 8.33%;
- + }
- + .col-lg-2 {
- + width: 16.66%;
- + }
- + .col-lg-3 {
- + width: 25%;
- + }
- + .col-lg-4 {
- + width: 33%;
- + }
- + .col-lg-5 {
- + width: 41.66%;
- + }
- + .col-lg-6 {
- + width: 50%;
- + }
- + .col-lg-7 {
- + width: 58.33%;
- + }
- + .col-lg-8 {
- + width: 66.66%;
- + }
- + .col-lg-9 {
- + width: 74.99%;
- + }
- + .col-lg-10 {
- + width: 83.33%;
- + }
- + .col-lg-11 {
- + width: 91.66%;
- + }
- + .col-lg-12 {
- + width: 100%;
- + }
- +}
- +
- +/************* Tablets Only *************/
- +@media (min-width: 768px) and (max-width: 991px) {
- + .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{
- + float: left;
- + }
- + .col-md-1 {
- + width: 8.33%;
- + }
- + .col-md-2 {
- + width: 16.66%;
- + }
- + .col-md-3 {
- + width: 25%;
- + }
- + .col-md-4 {
- + width: 33%;
- + }
- + .col-md-5 {
- + width: 41.66%;
- + }
- + .col-md-6 {
- + width: 50%;
- + }
- + .col-md-7 {
- + width: 58.33%;
- + }
- + .col-md-8 {
- + width: 66.66%;
- + }
- + .col-md-9 {
- + width: 74.99%;
- + }
- + .col-md-10 {
- + width: 83.33%;
- + }
- + .col-md-11 {
- + width: 91.66%;
- + }
- + .col-md-12 {
- + width: 100%;
- + }
- +}
- + </style>
- + </head>
- +
- + <body>
- +
- + <h1>Our Menu</h1>
- + <div class="row">
- + <div class="col-lg-4 col-md-6">
- + <div class="section">
- + <h2 class="chicken">Chicken</h2>
- + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Totam, molestias, cumque! Odio illum quisquam sint porro exercitationem natus in consectetur blanditiis sunt, dolor aliquam magnam necessitatibus nobis mollitia quo obcaecati!</p>
- + </div>
- + </div>
- + <div class="col-lg-4 col-md-6">
- + <div class="section">
- + <h2 class="beef">Beef</h2>
- + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptas ipsa quae dolorem tempora nulla hic earum maiores debitis, dolore modi, ratione consequuntur rerum enim dicta nobis deleniti quos, expedita obcaecati.</p>
- + </div>
- + </div>
- + <div class="col-lg-4 col-md-12">
- + <div class="section">
- + <h2 class="sushi">Sushi</h2>
- + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid, consequuntur. Accusamus suscipit soluta expedita, deserunt itaque hic, aperiam, cumque beatae maxime labore consectetur cum aliquid dicta iste cupiditate incidunt quasi.</p>
- + </div>
- + </div>
- + </div>
- + </body>
- +
- +</html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement