@@ -161,7 +161,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
161161< p > Here is a < code > 100px</ code > × < 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 ; ">
165165height: 100px;
166166width: 100px;
167167border: 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 ; ">
175175height: 100px;
176176width: 100px;
177177border-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 ; ">
188188width: 0;
189189border-top: 30px solid #C66;
190190border-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 ; ">
200200width: 0;
201201border-bottom: 30px solid #6C6;
202202border-left: 30px solid transparent;
@@ -207,7 +207,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
207207< p > The side borders don’t have to be the same size as the bottom border. Here’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 ; ">
211211width: 0;
212212border-bottom: 30px solid #6C6;
213213border-left: 52px solid transparent;
@@ -218,7 +218,7 @@ <h1>CSS Hexagon Tutorial <span>by James Tauber</span></h1>
218218< p > And here’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 ; ">
222222width: 0;
223223border-top: 30px solid #6C6;
224224border-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 ; ">
237237width: 0;
238238border-bottom: 30px solid #6C6;
239239border-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 ; ">
264264float: left;
265265border-right: 30px solid #6C6;
266266border-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