-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule2-solution-css.html
More file actions
145 lines (137 loc) · 3.29 KB
/
module2-solution-css.html
File metadata and controls
145 lines (137 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<!-- saved from url=(0080)https://3024k.github.io/HTML-CSS-Javascript-for-Web-Developers/module2-solution/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>module2-solution</title>
<style>
/*basic style*/
* {
box-sizing: border-box;
}
body {
background-color: white;
}
h1 {
margin: 100px;
text-align: center;
font-family: Helvetica;
font-weight: bold;
font-size: 175%;
}
section {
position: relative;
padding: 15px;
width: 100%;
}
p {
position: relative;
clear: right;
}
div {
position: relative;
background-color: gray;
border: 1px solid black;
width: 100%;
margin-left: auto;
margin-right: auto;
margin-bottom: auto;
}
.sub1 {
float: right;
width: 100px;
padding: 5px;
margin: 0px;
border: 1px solid black;
text-align: center;
font-size: 125%;
font-weight: bold;
background-color: white;
}
.sub2 {
float: right;
color: white;
width: 100px;
padding: 5px;
margin: 0px;
border: 1px solid black;
text-align: center;
font-size: 125%;
font-weight: bold;
background-color: maroon;
}
.sub3 {
color: black;
float: right;
width: 100px;
padding: 5px;
margin: 0px;
border: 1px solid black;
text-align: center;
font-size: 125%;
font-weight: bold;
background-color: tomato;
}
.content {
padding: 5px;
border: none;
background-color: gray;
font-family: Helvetica;
color: black;
margin: 0px;
height: 200px;
overflow: auto;
}
.row {
width: 90%;
}
/*desktop version*/
@media (min-width: 992px){
.column-lg-4 {
float: left;
width: 33.33%;
}
}
/*tablet version*/
@media (min-width: 768px) and (max-width: 991px){
.colmn-md-6 {
float: left;
width: 50%;
margin-left: auto;
margin-right: auto;
}
.colmn-md-12 {
float: left;
width: 100%;
margin-left: auto;
margin-right: auto;
}
}
/*mobile version*/
@media (max-width: 767px){
.colmn-sm-12 {
float: left;
width: 100%;
}
}
</style></head>
<body>
<h1>Our Menu</h1>
<section class="column-lg-4 colmn-md-6 colmn-sm-12">
<div>
<p class="sub1">Chicken</p>
<p class="content">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
</p>
</div>
</section>
<section class="column-lg-4 colmn-md-6 colmn-sm-12">
<div>
<p class="sub2">Beef</p>
<p class="content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.</p>
</div>
</section>
<section class="column-lg-4 colmn-md-12 colmn-sm-12">
<div>
<p class="sub3">Sushi</p>
<p class="content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.<</p>
</div>
</section></body></html>