-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgridlayout.html
76 lines (65 loc) · 2.35 KB
/
gridlayout.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/sites.css">
</head>
<style>
.row>[class^=col]{
padding-top: 1em;
padding-bottom: 1em;
background-color: rgba(47, 213, 55, 0.25);
border: 1px solid rgba(89, 17, 197, 0.4);
}
.row{
margin-top: 0.25em;
}
</style>
<body>
<div class="container">
<div class="row">
<div class="col"> Element 1 of 2 (row1)</div>
<div class="col"> Element 2 of 2 (row1)</div>
</div>
<div class="row">
<div class="col"> Element 1 of 3 (row2)</div>
<div class="col"> Element 2 of 3 (row2)</div>
<div class="col"> Element 3 of 3 (row2)</div>
</div>
<div class="row">
<div class="col-4"> Element 1 of 2 (row3)</div>
<div class="col-8"> Element 2 of 2 (row3)</div>
<div class="col-6"> Extra Element as space of 12 finished (row3)</div>
</div>
<div class="row">
<div class="col-sm-2"> Element 1 of 3 (row4)</div>
<div class="col-sm-7"> Element 2 of 3 (row4)</div>
<div class="col-sm-3"> Element 3 of 3 (row4)</div>
</div>
<div class="row">
<div class="col-md-8 col-sm-4 "> I want 8 columns(row5)</div>
<div class="col-md-4 col-sm-8"> Need 4 columsn (row5)</div>
</div>
<div class="row">
<img src="images/bethanylogo.png" alt="Logo" class="col-lg-4 col-sm-8"/>
<div class="col-lg-8 col-sm-4">
<h2>DeepShaded Pie Shop</h2>
<h3>Welcome to our store</h3>
<p>Sweet iccream jelly beans lemon drops. Pastry toffee fruitcake gingerbread jelly-o.
Lollipop sesame snaps muffin. Macaroon halvah marshmallow sesame snaps sugar plum dragée.
</p>
</div>
</div>
<div class="row">
<div class="col-md-4 offset-lg-4 "> Space (row7)</div>
<div class="col-md-4 col-xs-4"> Need 4 columsn (row7)</div>
</div>
<div class="row">
<div class="col-md-2"> Element 1 of 3 (row8)</div>
<div class="col-md-4 order-12"> Element 2 of 3 (row8)</div>
<div class="col-md-6 order-1"> Element 3 of 3 (row8)</div>
</div>
</body>
</html>