-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinline_block_table.html
93 lines (87 loc) · 3.88 KB
/
inline_block_table.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html>
<head>
<title>CSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="./style/reset.css" />
<link rel="stylesheet" type="text/css" href="./style/main.css" />
<link rel="stylesheet" type="text/css" href="./style/inline_block_table.css" />
</head>
<body>
<h4 class="bold m-bottom10">Standard behavior:</h4>
<ul class="inline-block-table inline-block border bw3 bc2">
<li class="img top border bw3 bc1">
<img class="middle" src="http://lorempixel.com/50/50/" alt="lorempixel.com">
</li>
<li class="text1 middle border bw3 bc1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec interdum leo at gravida tristique. Integer egestas iaculis elit,
in sollicitudin justo. Aenean lacinia nunc et mauris maximus,
sit amet pellentesque dolor ultricies.
</li>
<li class="text2 middle border bw3 bc1">
Aliquam ac felis magna.
</li>
</ul>
<h4 class="bold m-top20">Font-size = 0:</h4>
<h6 class="italic m-bottom10 ">(partly supported by Safari, you can use inline-table instead of inline-block)</h6>
<ul class="inline-block-table font-size0 inline-block border bw3 bc2">
<li class="img top border bw3 bc1">
<img class="middle" src="http://lorempixel.com/50/50/" alt="lorempixel.com">
</li>
<li class="text1 middle border bw3 bc1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec interdum leo at gravida tristique. Integer egestas iaculis elit,
in sollicitudin justo. Aenean lacinia nunc et mauris maximus,
sit amet pellentesque dolor ultricies.
</li>
<li class="text2 middle border bw3 bc1">
Aliquam ac felis magna.
</li>
</ul>
<h4 class="bold m-bottom10 m-top20">Comments:</h4>
<ul class="inline-block-table inline-block border bw3 bc2">
<li class="img top border bw3 bc1">
<img class="middle" src="http://lorempixel.com/50/50/" alt="lorempixel.com">
</li><!--
--><li class="text1 middle border bw3 bc1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec interdum leo at gravida tristique. Integer egestas iaculis elit,
in sollicitudin justo. Aenean lacinia nunc et mauris maximus,
sit amet pellentesque dolor ultricies.
</li><!--
--><li class="text2 middle border bw3 bc1">
Aliquam ac felis magna.
</li>
</ul>
<h4 class="bold m-bottom10 m-top20">Remove the spaces:</h4>
<ul class="inline-block-table inline-block border bw3 bc2">
<li class="img top border bw3 bc1">
<img class="middle" src="http://lorempixel.com/50/50/" alt="lorempixel.com">
</li><li class="text1 middle border bw3 bc1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec interdum leo at gravida tristique. Integer egestas iaculis elit,
in sollicitudin justo. Aenean lacinia nunc et mauris maximus,
sit amet pellentesque dolor ultricies.
</li><li class="text2 middle border bw3 bc1">
Aliquam ac felis magna.
</li>
</ul>
<h4 class="bold m-top20">Negative margin:</h4>
<h6 class="italic m-bottom10 ">(you shouldn't use this, depends on font-size)</h6>
<ul class="inline-block-table negative-margin inline-block border bw3 bc2">
<li class="img top border bw3 bc1">
<img class="middle" src="http://lorempixel.com/50/50/" alt="lorempixel.com">
</li>
<li class="text1 middle border bw3 bc1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec interdum leo at gravida tristique. Integer egestas iaculis elit,
in sollicitudin justo. Aenean lacinia nunc et mauris maximus,
sit amet pellentesque dolor ultricies.
</li>
<li class="text2 middle border bw3 bc1">
Aliquam ac felis magna.
</li>
</ul>
</body>
</html>