-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
109 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,61 @@ | ||
<!-- index.html --> | ||
|
||
<!-- Set document type as html and set language as English --> | ||
<!doctype html5> | ||
<!doctype html> | ||
<html xml:lang="en"> | ||
<!-- URL Title --> | ||
<title>Our</title> | ||
<title>Our Menu</title> | ||
|
||
<!-- Set heading --> | ||
<html> | ||
<!-- Full Page CSS --> | ||
<link rel="stylesheet" href="CSS/styles.css"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IT-edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="viewport" content="width=viewport-width, initial-scale=1.0"> | ||
|
||
<!-- Open Master Head --> | ||
<head> | ||
<h1 align="center"> | ||
Our Menu | ||
</h1> | ||
</head> | ||
<head> | ||
<body> | ||
<p> | ||
<div class="container"> | ||
<div class="col-lg-3"> | ||
<div class="itemdescr"> | ||
<div class="itemtitle" align="right">Chicken</div> | ||
Lorem ipsum dolor sit omet, sonsectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exervitation ullamco laboris nisi ut aliquip ex ea commodo consequot. | ||
</div> | ||
<div class="item" id="item1"> | ||
<div class="itemtitle" id="itemtitle1" align="center">Chicken</div> | ||
<div class="itemdescr"> | ||
Lorem ipsum dolor sit omet, sonsectetur adipisicing elit, | ||
sed do eiusmod tempor incididunt ut labore et dolore magna | ||
aliqua. Ut enim ad minim veniam, quis nostrud exervitation | ||
ullamco laboris nisi ut aliquip ex ea commodo consequot. | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-lg-3"> | ||
<div class="item" id="item2"> | ||
<div class="itemtitle" id="itemtitle2" align="center">Beef</div> | ||
<div class="itemdescr"> | ||
Lorem ipsum dolor sit omet, sonsectetur adipisicing elit, | ||
sed do eiusmod tempor incididunt ut labore et dolore magna | ||
aliqua. Ut enim ad minim veniam, quis nostrud exervitation | ||
ullamco laboris nisi ut aliquip ex ea commodo consequot. | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-lg-3"> | ||
<div class="item" id="item3"> | ||
<div class="itemtitle" id="itemtitle3" align="center">Sushi</div> | ||
<div class="itemdescr"> | ||
Lorem ipsum dolor sit omet, sonsectetur adipisicing elit, | ||
sed do eiusmod tempor incididunt ut labore et dolore magna | ||
aliqua. Ut enim ad minim veniam, quis nostrud exervitation | ||
ullamco laboris nisi ut aliquip ex ea commodo consequot. | ||
</div> | ||
</div> | ||
</div> | ||
</p> | ||
<!-- Close body --> | ||
</body> | ||
|
||
</head> | ||
<!-- Close HTML --> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/********** Base styles **********/ | ||
* { | ||
font-family: sans-serif; | ||
} | ||
|
||
h1 { | ||
margin: 15px; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
margin: 1rem; | ||
} | ||
|
||
.item { | ||
position: relative; | ||
border: 2px solid black; | ||
padding: 0 0 .25rem .25rem; | ||
background: rgb(151, 151, 151); | ||
margin: .25rem; | ||
} | ||
.itemdescr { | ||
position: relative; | ||
padding: .5rem; | ||
} | ||
.itemtitle { | ||
margin-left: 52%; | ||
padding: .25rem; | ||
border-left: 2px solid black; | ||
border-bottom: 2px solid black; | ||
width: auto; | ||
position: center; | ||
} | ||
|
||
#itemtitle1 { | ||
background: salmon; | ||
} | ||
|
||
#itemtitle2 { | ||
background: red; | ||
} | ||
|
||
#itemtitle3 { | ||
background: tan; | ||
} | ||
|
||
/********** Large devices only **********/ | ||
@media screen and (min-width: 992px) { | ||
.col-lg-3 { | ||
width: 33.333%; | ||
} | ||
} | ||
|
||
|
||
/********** Medium devices only **********/ | ||
@media screen and (min-width: 768px) and (max-width: 991px) { | ||
.col-lg-3 { | ||
width: 48%; | ||
} | ||
#item3 { | ||
width: 98%; | ||
} | ||
} | ||
|
||
/********** Small devices only **********/ | ||
@media screen and (max-width: 767px) { | ||
.col-lg-3 { | ||
width: 98%; | ||
height: auto; | ||
} | ||
} |