-
Notifications
You must be signed in to change notification settings - Fork 0
/
stacking tables.html
163 lines (151 loc) · 7.44 KB
/
stacking tables.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1.0"> <!-- So that mobile webkit will display zoomed in -->
<meta name="format-detection" content="telephone=no"> <!-- disable auto telephone linking in iOS -->
<title>Stacking tables on responsive</title>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Roboto:300,400,500);
body {
font-family: 'Roboto', sans-serif;
}
/* Media query for mobile*/
@media only screen and (max-width: 629px) {
.container {
width: 100%;
}
.full {
display:block;
width:100%;
padding-right: 0 !important;
padding-bottom: 10px;
padding-left: 0 !important;
}
}
</style>
</head>
<body style="margin:0; padding:10px 0;" bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<!-- 100% wrapper -->
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td align="center" valign="top" bgcolor="#ffffff" style="background-color: #ffffff;">
<!-- ### FULL WIDTH CONTENT ### -->
<table border="0" width="630" cellpadding="0" cellspacing="0" class="container">
<tr>
<td class="ContainerPadding" style="padding-left: 30px; padding-right: 30px; font-size: 15px; line-height: 22px; font-family: Helvetica, sans-serif; color: #333; text-align: center;">
<table width="100%" cellspacing="0" style="border: 3px dashed #e9e9e9; padding: 15px;">
<tr>
<td width="100%" dir="ltr" class="full">
<div style="background: #ff0033; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
One Column
</div>
Full width column.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ### END FULL WIDTH CONTENT ### -->
<br><br>
</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#ffffff" style="background-color: #ffffff;">
<!-- ### 2 COLUMN CONTENT ### -->
<table border="0" width="630" cellpadding="0" cellspacing="0" class="container">
<tr>
<td class="ContainerPadding" style="padding-left: 30px; padding-right: 30px; font-size: 15px; line-height: 22px; font-family: Helvetica, sans-serif; color: #333; text-align: center;">
<table width="100%" cellspacing="0" style="border: 3px dashed #e9e9e9; padding: 15px;">
<tr>
<td width="50%" dir="ltr" class="full" style="padding-right: 15px;">
<div style="background: #40b3ff; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
Left
</div>
The left column will stack at the top on mobile.
</div>
</td>
<td width="50%" dir="ltr" class="full" style="padding-left: 15px;">
<div style="background: #82b541; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
Right
</div>
The right column will stack at the bottom on mobile.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ### END 2 COLUMN CONTENT ### -->
<br><br>
</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#ffffff" style="background-color: #ffffff;">
<!-- ### 2 COLUMN CONTENT ### -->
<table border="0" width="630" cellpadding="0" cellspacing="0" class="container">
<tr>
<td class="ContainerPadding" style="padding-left: 30px; padding-right: 30px; font-size: 15px; line-height: 22px; font-family: Helvetica, sans-serif; color: #333; text-align: center;">
<table dir="rtl" width="100%" cellspacing="0" style="border: 3px dashed #e9e9e9; padding: 15px;">
<tr>
<td width="50%" dir="ltr" class="full" style="padding-left: 15px;">
<div style="background: #82b541; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
Right
</div>
The right column will stack at the top on mobile.
</div>
</td>
<td width="50%" dir="ltr" class="full" style="padding-right: 15px;">
<div style="background: #40b3ff; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
Left
</div>
The left column will stack at the bottom on mobile.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ### END 2 COLUMN CONTENT ### -->
<br><br>
</td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#ffffff" style="background-color: #ffffff;">
<!-- ### FULL WIDTH CONTENT ### -->
<table border="0" width="630" cellpadding="0" cellspacing="0" class="container">
<tr>
<td class="ContainerPadding" style="padding-left: 30px; padding-right: 30px; font-size: 15px; line-height: 22px; font-family: Helvetica, sans-serif; color: #333; text-align: center;">
<table width="100%" cellspacing="0" style="border: 3px dashed #e9e9e9; padding: 15px;">
<tr>
<td width="100%" dir="ltr" class="full">
<div style="background: #ff0033; padding: 20px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #fff;">
<div style="text-transform:uppercase; font-size: 32px; margin-bottom: 10px; font-weight: 500;">
One Column
</div>
Full width column.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- ### END FULL WIDTH CONTENT ### -->
<br><br>
</td>
</tr>
</table>
</body>
</html>