-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path4.html
executable file
·794 lines (692 loc) · 19.3 KB
/
4.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>We ♥ CSS Rocks ♥ CSS Loves Us</title>
<meta name="viewport" content="width=1024">
<link rel="stylesheet" href="dist/coderdeck-core.min.css" type="text/css">
<link rel="stylesheet" id='style-theme-link' href="src/css/coderdeck.css" type="text/css" >
<script src='dist/jquery.min.js'></script>
<script src="dist/modernizr.js"></script>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
<body class="deck-container">
<script type='text/coderdeck' id='coderdeck-default'>
<html>
<head>
<script src='src/jquery.min.js'>SCRIPTEND
</head>
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-plain'>
<html>
<title>test</title>
<link rel="stylesheet" href="reset.css">
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-css-playground'>
<html>
<title>test</title>
CODE
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<p>Pargraph of text <p></p>
<div class='stuff'><div> with class "stuff"</div>
<div id='my-div'><div> with id "my-div"</div>
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-style-example'>
<html>
<title>test</title>
<style>
CODE
</style>
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<h3>Pargraph of text <p> here</p>
<div class='stuff'>I'm a div <div> with class "stuff"</div>
<div id='my-div'>I'm a <div> with id "my-div"</div>
</body>
</html>
</script>
<!-- Create any number of elements with class slide within the container -->
<article class='slide slide-subhead'>
<h1>More CSS <font color="red">♥</font></h1>
<h2>Week 4</h2>
<p><a href='http://marthar.github.com/webspring-2015/4.html'>http://marthar.github.com/webspring-2015/4.html</a></p>
</article>
<article class='slide slide-list'>
<h1>Order of Business</h1>
<ol>
<li class="slide">
<h3>Review Homework</h3>
</li>
<li class="slide">
<h3>CSS Review</h3>
</li>
<li class="slide">
<h3>CSS Styling Basics</h3>
</li>
<li class="slide">
<h3>CSS Box Model</h3>
</li>
<li class="slide">
<h3>Floats</h3>
</li>
<li class="slide">
<h3>Exercises</h3>
</li>
<li class="slide">
<h3>Homework</h3>
</li>
</ol>
</article>
<article class='slide slide-subhead'>
<h1>Homework</h1>
<h2><a href="homework-monday.html">Monday </a>|<a href="homework-friday.html"> Friday</a></h2>
</article>
<article class='slide slide-accent'>
<h1>Let's Review <br/>Our CSS Basics</h1>
</article>
<article class="slide slide-list">
<h1>Cascading Style Sheets</h1>
<ul>
<li class="slide">
<h3>Used for “presentation” of your HTML</h3>
</li>
<li class="slide">
<h3>Controls the styles of your page</h3>
</li>
<li class="slide">
<h3>Also Controls the layout of your page (where stuff is positioned)</h3>
</li>
<li class="slide">
<h3>Can have different styles for different media formats (eg. print, screen, mobile)</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h2>Available selectors</h2>
<ul>
<li class='slide'>
<h3>name of element (e.g. <em>p, div, h1</em>)</h3>
</li>
<li class='slide'>
<h3>
class name prefixed with a period (.)<br/>
<em>HTML </em><div <span class="callout">class=‘my-class-name</span>’><span class="light"> This is my class name </span></div><br/>
<em>CSS </em><span class="callout">.my-class-name</span> {<span class="light"> font-size: 25px; </span>}
</h3>
</li>
<li class='slide'>
<h3>element id prefixed with a pound sign (#)<br/>
<em>HTML </em><div <span class="callout">id=‘my-id</span>’><span class="light"> This is my id</span></div><br/>
<em>CSS </em><span class="callout">#my-id</span> { <span class="light"> color: red;</span> }
</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Pay attention to your class and id names!</h2>
<ul><li class="slide">
<h3>You can't use spaces.</h3>
</li>
<li class="slide">
<h3>You shouldn't use underscores (_) - although technically now permitted</h3>
</li>
<li class="slide">
<h3>Use camelCase or dashes-to-separate-names</h3>
</li>
<li class="slide">
<h3>I'd recommend dashes - css uses Dashes (<em>background-color, font-family</em>), <br/>
Javascript uses camelCase</h3>
</li>
<li class="slide">
<h3>Be consistent! - easier to read and remember what you wrote.</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h1>Properties</h1>
<ul>
<li class="slide">
<h3>There are lots of them</h3>
</li>
<li class="slide">
<h3>Two Primary types: Layout, Style<br/>
(Padding is layout, color is style)</h3>
</li>
<li class="slide">
<h3>Style generally inherit, Layout don’t</h3>
</li>
<li class="slide">
<h3>Sometimes can be combined into one: e.g.<br/>
<em>font = font-family, font-style, font-variant, ...</em><br/>
<em>background = background-color, background-image, background-repeat, background-attachment, background-position ...</em><br/>
<em>padding = padding-top, padding-right, padding-bottom, padding-left ...</em></h3>
</li>
<li class="slide">
<h3>Layout box properties go clockwise from midnight: top, right, bottom, left</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h1>Values</h1>
<ul>
<li class="slide">
<h3>colors: #FFF, #FFFFFF, rgb(255,255,255), rgba(255,255,255, 1), gray, black, red</h3>
</li>
<li class="slide">
<h3>numbers: 0, 25px, 1.1em, 100%<br/>
<em>em's are 'M' height - and these inherit (multiply)</em>
</h3>
</li>
<li class="slide">
<h3>“inherit” is a special property to force inheritence</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>How do we use this in our sites?</h1>
</article>
<article class='slide slide-list'>
<h1>Remember</h1>
<ul>
<li><h3>Styles are Separate from HTML</h3></li>
<li><h3>Usually only need 1 style sheet</h3></li>
<li><h3>Link to CSS in your HTML</h3></li>
<li><h3>Your CSS should start with a <a href='http://meyerweb.com/eric/tools/css/reset/'>RESET</a></h3></li>
</ul>
</article>
<article class='slide slide-list'>
<p><br/><img src="images/style-linking-example.gif" class='top-image'/><br/><br/></p>
</article>
<article class='slide slide-list'>
<h2>In Your HTML</h2>
<pre class='prettyprint'>
<head>
<link href="stylesheet.css" rel="Stylesheet" type="text/css" />
</head>
</pre>
</article>
<article class='slide slide-list'>
<h2>Your CSS begins AFTER the reset</h2>
<pre class='prettyprint'>
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* END OF RESET - Start of Your CSS*/
</pre>
</article>
<article class='slide slide-accent'>
<h1>Styles</h1>
</article>
<article class="slide slide-list">
<h1>Style Properties</h1>
<ul>
<li class="slide">
<h3>color:</h3>
</li>
<li class="slide">
<h3>background-color:</h3>
</li>
<li class="slide">
<h3>border-radius:</h3>
</li>
<li class="slide">
<h3>font: style variant weight size family</h3>
</li>
<li class="slide">
<h3>text-align:</h3>
</li>
<li class="slide">
<h3>text-indent:</h3>
</li>
<li class="slide">
<h3>opacity:</h3>
</li>
<li class="slide">
<h3>line-height</h3>
</li>
<li class="slide">
<h3>letter-spacing, word-spacing </h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Style Properties</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-coder-template="coderdeck-plain" id='coderdeck-default'>
<style>
p {
}
</style>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa</p>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>Combining Selectors</h1>
</article>
<article class="slide slide-list">
<h1>Selector combinations </h1>
<ul>
<li class='slide'>
<h3> Can have a declaration apply to multiple
styles with a comma (,)</h3>
<ul>
<li><em>.my-class-one, .my-class-two</em> { color:red; }</li>
</ul>
</li>
<li class='slide'>
<h3> Can “Cascade” styles with spaces between selectors</h3>
<ul>
<li>HTML<pre><nav id='top'><p> ... </p></nav></pre>
CSS<pre><em>#top p </em> { color:red; } /* only p's inside of outer */</pre>
</li>
</ul>
</li>
<li class='slide'>
<h3> Can select only "child" styles with > signs</h3>
<ul>
<li>HTML<pre><nav id='outer'><ul><li> ... </li></ul></nav></pre>
CSS<pre><em>#outer > ul </em> { background-color:red; } /* only ul's that are direct children of outer */</pre>
</li>
</ul>
</li>
<li class='slide'>
<h3>Psudeo-classes that apply to elements in certain conditions</h3>
<ul>
<li><em>a:hover</em> { color:blue; } /* only links we are hovering over */<br/>
<em>a:visited</em> { color:red; } /* links we've visited already */<br/>
<em>p:first-child</em> { color:red; } /* the first paragraph in a container */<br/>
</li>
</ul>
</li>
<li class='slide'>
<h3>Also can select by arbitrary attributes</h3>
<ul>
<li><em>input[type=radio]</em>{ color:blue; } /* only radio buttons */<br/></li>
</ul>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Selector Combination Exercise</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-coder-template="coderdeck-plain" id='coderdeck-default'>
<style>
</style>
<header>
<h1>My Site!</h1>
<nav><ul>
<li><a href='#'>Link 1</a></li>
<li><a href='#'>Link 2</a></li>
</ul></nav>
</header>
<section id='content'>
<article class='blog-post'>
<h1>Blog Post 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa</p>
</article>
<article class='blog-post'>
<h1>Blog Post 1</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac elit at nisl sagittis consequat sed eget tellus. Aliquam gravida, nunc sit amet viverra dictum, nibh justo semper massa</p>
</article>
</section>
<footer>
<a href='#'>Link 1</a> | <a href='#'>Link 2</a>
</footer>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>Cascading</h1>
</article>
<article class="slide slide-list">
<h1>Cascading Hierarchy</h1>
<ol>
<li class="slide">
<h3>Inline style (those defined directly with a style='....' attribute in the tag)</h3>
</li>
<li class="slide">
<h3>Number of ID selectors</h3>
</li>
<li class="slide">
<h3>Number of Class selectors</h3>
</li>
<li class="slide">
<h3>Number of tag selectors</h3>
</li>
<li class="slide">
<h3>Order of appearance last to first</h3>
</li>
<li class="slide">
<h3>Style inheritance</h3>
</li>
</ol>
</article>
<article class='slide slide-list'>
<h2>Cascading - What Color?</h2>
<textarea class='coder-editor coder-editor-full' data-coder-template="coderdeck-plain" id='coderdeck-default'>
<style>
p { color:red;}
.blue { color:blue; }
#menu p { color:black; }
</style>
<div id="menu"><p class='blue'>This is the paragraph</p></div>
</textarea>
</article>
<article class="slide slide-list">
<h1>Organizing Your CSS</h1>
<ol>
<li class='slide'>
<h3>Start with your reset</h3>
</li>
<li class="slide">
<h3>Set your body</h3>
</li>
<li class="slide">
<h3>Set your base element styles (p, h1, h2, blockqoute)</h3>
</li>
<li class="slide">
<h3>Set your reusable class styles</h3>
</li>
<li class="slide">
<h3>Set your layout styles</h3>
</li>
<li class="slide">
<h3>Set your module styles (additional sub-themes like blogs,custom pages, etc )</h3>
</li>
</ol>
</article>
<article class='slide slide-accent'>
<h1>Logo Replacement</h1>
</article>
<article class='slide slide-list'>
<h2>Logo Replacement</h2>
<textarea class='coder-editor coder-editor-split' data-coder-template="coderdeck-plain" id='coderdeck-default'>
<style>
#site-header h1 a {
display:block;
width:300px;
height:80px;
background:url(images/logo.png) no-repeat top left;
text-indent:-9999px;
}
</style>
<header id='site-header'>
<h1><a href='#'>My Awesome Website</a></h1>
</header>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>Let's Talk Layout</h1>
</article>
<article class="slide slide-list">
<h1>Layout Properties</h1>
<ul>
<li class="slide">
<h3>Box model: margin, padding, width, height</h3>
</li>
<li class="slide">
<h3>top, bottom, left, right</h3>
</li>
<li class="slide">
<h3>border</h3>
</li>
<li class="slide">
<h3>position [ static, relative, absolute ]</h3>
</li>
<li class="slide">
<h3>float [ left, right, none ], clear [ left, right, both]</h3>
</li>
<li class="slide">
<h3>display [none, block, inline inline-block]</h3>
</li>
<li class="slide">
<h3>visibility [visible, hidden]</h3>
</li>
<li class="slide">
<h3>background (color, image, repeat, position)</h3>
</li>
</ul>
</article>
<article class='slide slide-accent'>
<h1>Box Model</h1>
</article>
<article class='slide slide-image'>
<h1>Layout = Box Model</h2>
<img src='images/layout.jpg'/>
</article>
<article class="slide slide-list">
<h1>Layout Properties</h1>
<ul>
<li class="slide">
<h3>Content:text the tags are wrapping</h3>
<ul>
<li>color:red;</li>
<li>font-size:20px;</li>
<li>text-transform:uppercase;</li>
</ul>
</li>
<li class="slide">
<h3>Padding:color behind the text</h3>
<ul>
<li>padding-top:5px; (-left, -right, -top, -bottom)</li>
<li>padding:5px 10px;</li>
<li>padding:5px 3px 10px 20px;</li>
</ul>
</li>
<li class="slide">
<h3>Border:line around the padding</h3>
<ul>
<li>border-style:solid;</li>
<li>border-width:5px;</li>
<li>border-color:red;</li>
<li>border:5px solid red;</li>
</ul>
</li>
<li class="slide">
<h3>Margin:transparent space around the padding and boarder</h3>
<ul>
<li>margin-top:5px; (-left, -right, -top, -bottom)</li>
<li>margin:5px 10px;</li>
<li>margin:5px 3px 10px 20px;</li>
</ul>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Box Model Exercise</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' data-save='box-model'>
<style>
#box1 {
background-color:teal;
}
#box2 {
background-color:orange;
}
</style>
<div id="box1">I'm a box</div>
<div id="box2">I'm a box 2!</div>
</textarea>
</article>
<article class='slide slide-accent'>
<h1>How do you layout elements on the page?</h1>
</article>
<article class="slide slide-list">
<h1>Only two ways to layout:</h1>
<ul>
<li class="slide">
<h3>1. Using floats to align things next to each other</h3>
</li>
<li class="slide">
<h3>2. Use “position:absolute; top:...; left:....” inside of a positioned container.</h3>
</li>
<style>
.position-example {
-webkit-transition: -webkit-transform 1s linear;
-webkit-transform: translate(0,0) rotate(0deg); }
.position-example.deck-current {
-webkit-transform: translate(30px,250px) rotate(15deg);
}
</style>
<li class="position-example slide">
<h3 style=''>(I lied) 3. you can use transforms - but let's ignore those for now</h3>
</li>
</ul>
</article>
<article class="slide slide-list">
<h1>Layout with floats</h1>
<h3>Use this for content, page elements that need to flow or resize</h3><br/>
<ul>
<li class="slide">
<h3>Use float:left or float:right to float elements</h3>
</li>
<li class="slide">
<h3>Make sure that elements have a width - floating will squeeze elements down</h3>
</li>
<li class="slide">
<h3>Make sure to clear your floats otherwise the container won't have a height</h3>
</li>
<li class="slide">
<h3>You need an extra element to clear, or can use the clearfix</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Float Exercise</h2>
<h3>navs are a great example of floating elements - we'll make this from a list</h3>
<h3><img src="images/nav-floats.png"/></h3>
</article>
<article class='slide slide-list'>
<h2>Float Exercise</h2>
<textarea class='coder-editor coder-editor-split coder-editor-instant' >
<style>
</style>
<nav>
<ul>
<li>home</li>
<li>about</li>
<li>shop</li>
<li>contact</li>
</ul>
</nav>
</textarea>
<script type='coder-solution'>
<style>
li {
list-style:none;
float:left;
margin:10px;
background-color:teal;
padding:7px 14px;
color:white;
text-transform:uppercase;
font-family:Helvetica;
}
</style>
<nav>
<ul>
<li>home</li>
<li>about</li>
<li>shop</li>
<li>contact</li>
</ul>
</nav>
</script>
</article>
<article class='slide slide-homework' id="homework-4">
<h2>Homework</h2>
<h3 class='slide'>Reading</h3>
<ul class='slide'>
<li>
<h3>Duckett, Chapters 11, 12, 13, 14</h3>
</li>
<li>
<h3><a href='http://coding.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/'>Mastering CSS Coding: Getting Started</a>
</h3>
</li>
</ul>
<h3 class='slide'>Coding</h3>
<ul class='slide'>
<li>
<h3>Style your Recipe card (create a css sheet, add in class & id hooks to your html if needed)</h3>
</li>
<li>
<h3>Style Cats vs. Dogs (we'll apply layout style later)</h3>
</li>
</ul>
</ul>
</article>
<article class='slide slide-list'>
<h2>Llama Homework</h2>
<p>Default paragraphs to two paragraphs, with floated images<br/>
<h3><br/><img src="images/css-default.png" class='top-image'/><br/><br/></h3>
</article>
<article class='slide slide-list'>
<h2>Layout for Cats vs. Dog</h2>
<h3><br/><img src="images/dogsvscat.png" class='top-image'/><br/><br/></h3>
</article>
<script src='dist/coderdeck.min.js'></script>
<!-- Prettify -->
<script src="src/prettify.js"></script>
<script>
$(function() {
$.deck('.slide');
});
</script>
</body>
</html>