-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (52 loc) · 1.63 KB
/
index.html
File metadata and controls
62 lines (52 loc) · 1.63 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
.element-container{
width: 100%;
position: relative;
}
.element-container li{
list-style: none;
display: inline-block;
background-color: red;
padding: 20px;
float: left;
margin: 1%;
width: 18%;
text-align: center;
}
.element-container li img{
max-width: 100%;
height: auto;
}
</style>
<ul class="element-container">
<li class="single-element one" same-height="height-1">
<img src="https://via.placeholder.com/500x350" >
<p>NOOOO</p>
</li><!-- .single-element -->
<li class="single-element two" same-height="height-1">
<img src="https://via.placeholder.com/500x450" >
<p>NOOOO1111111</p>
</li><!-- .single-element -->
<li class="single-element three" same-height="height-2">
<img src="https://via.placeholder.com/500x800" >
<p>NOOOO222222</p>
</li><!-- .single-element -->
<li class="single-element four" same-height="height-2">
<img src="https://via.placeholder.com/500x650" >
<p>NOOOO222222</p>
</li><!-- .single-element -->
</ul><!-- .element-container -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- <script src="jquery.sameheight.js"></script> -->
<script src="same-height-elements.js"></script>
</body>
</html>