Skip to content

Commit de18b94

Browse files
committed
made columns more even
1 parent e7b55e3 commit de18b94

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/css-hexagon.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
161161
<p>Here is a <code>100px</code> &times; <code>100px</code> <code>div</code> with a <code>30px</code> border:</p>
162162

163163
<div style="float: left; width: 400px;"><div class="box-1"></div></div>
164-
<pre style="margin-left: 410px;">
164+
<pre style="margin-left: 480px;">
165165
height: 100px;
166166
width: 100px;
167167
border: 30px solid #999;
@@ -171,7 +171,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
171171
<p style="margin-top: 50px;">Watch what happens when each border has a different colour:</p>
172172

173173
<div style="float: left; width: 400px;"><div class="box-2"></div></div>
174-
<pre style="margin-left: 410px;">
174+
<pre style="margin-left: 480px;">
175175
height: 100px;
176176
width: 100px;
177177
border-top: 30px solid #C66;
@@ -184,7 +184,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
184184
<p style="margin-top: 50px;">Now if we drop the setting of <code>height</code> and explicitly set the <code>width</code> of the <code>div</code> to be <code>0</code>, we get the following:</p>
185185

186186
<div style="float: left; width: 400px;"><div class="box-3"></div></div>
187-
<pre style="margin-left: 410px;">
187+
<pre style="margin-left: 480px;">
188188
width: 0;
189189
border-top: 30px solid #C66;
190190
border-bottom: 30px solid #6C6;
@@ -196,7 +196,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
196196
<p>Drop the top border and make the left and right borders <code>transparent</code> and you get this:</p>
197197

198198
<div style="float: left; width: 400px;"><div class="box-4"></div></div>
199-
<pre style="margin-left: 410px;">
199+
<pre style="margin-left: 480px;">
200200
width: 0;
201201
border-bottom: 30px solid #6C6;
202202
border-left: 30px solid transparent;
@@ -207,7 +207,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
207207
<p>The side borders don&rsquo;t have to be the same size as the bottom border. Here&rsquo;s <code>30px</code> bottom with <code>52px</code> sides:</p>
208208

209209
<div style="float: left; width: 400px;"><div class="box-5"></div></div>
210-
<pre style="margin-left: 410px;">
210+
<pre style="margin-left: 480px;">
211211
width: 0;
212212
border-bottom: 30px solid #6C6;
213213
border-left: 52px solid transparent;
@@ -218,7 +218,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
218218
<p>And here&rsquo;s a <code>div</code> with a top border instead of a bottom border:</p>
219219

220220
<div style="float: left; width: 400px;"><div class="box-6"></div></div>
221-
<pre style="margin-left: 410px;">
221+
<pre style="margin-left: 480px;">
222222
width: 0;
223223
border-top: 30px solid #6C6;
224224
border-left: 52px solid transparent;
@@ -233,7 +233,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
233233
<div class="box-7"></div>
234234
<div class="box-6"></div>
235235
</div>
236-
<pre style="margin-left: 410px;">
236+
<pre style="margin-left: 480px;">
237237
width: 0;
238238
border-bottom: 30px solid #6C6;
239239
border-left: 52px solid transparent;
@@ -260,7 +260,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
260260
<div class="box-9"></div>
261261
<div class="box-10"></div>
262262
</div>
263-
<pre style="margin-left: 410px;">
263+
<pre style="margin-left: 480px;">
264264
float: left;
265265
border-right: 30px solid #6C6;
266266
border-top: 52px solid transparent;
@@ -296,7 +296,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
296296
<div class="hex"><div class="top"></div><div class="middle"></div><div class="bottom"></div></div>
297297
</div>
298298
</div>
299-
<pre style="margin-left: 410px;">
299+
<pre style="margin-left: 480px;">
300300
.hex {
301301
float: left;
302302
margin-left: 3px;
@@ -347,7 +347,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
347347
<div class="hex2"><div class="left"></div><div class="middle"></div><div class="right"></div></div>
348348
</div>
349349
</div>
350-
<pre style="margin-left: 410px;">
350+
<pre style="margin-left: 480px;">
351351
.hex {
352352
float: left;
353353
margin-right: -26px;

0 commit comments

Comments
 (0)