Skip to content

Commit e10528a

Browse files
author
Pearl Chen
committed
Added final CSS exercise
1 parent 7d87df7 commit e10528a

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

index.html

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,13 +1306,13 @@ <h2>Some Basic Interaction</h2>
13061306

13071307
<textarea class="coder-editor coder-editor-full">
13081308
&lt;nav&gt;
1309-
&lt;div&gt;&lt;a href="home.html"&gt;Home&lt;/a&gt;&lt;/div&gt;
1309+
&lt;div&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/div&gt;
13101310
&lt;div&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/div&gt;
13111311
&lt;div&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/div&gt;
13121312
&lt;/nav&gt;
13131313
</textarea>
13141314
<script type='coder-solution'>&lt;nav&gt;
1315-
&lt;div&gt;&lt;a href="home.html"&gt;Home&lt;/a&gt;&lt;/div&gt;
1315+
&lt;div&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/div&gt;
13161316
&lt;div&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/div&gt;
13171317
&lt;div&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/div&gt;
13181318
&lt;/nav&gt;
@@ -1375,6 +1375,45 @@ <h2>External CSS</h2>
13751375

13761376
</article>
13771377

1378+
<!-- SLIDE: CSS -->
1379+
<article class='slide slide-list'>
1380+
<h2>Hands-on time (45 minutes)</h2>
1381+
<p>Use this time to apply CSS to your 3-page website. Review the afternoon's slides and experiment with some of the properties on the cheatsheet. If you're stuck, here are some suggestions:</p>
1382+
<ul>
1383+
<li>Apply <code>width</code>s and <code>float</code>s to <code>&lt;section&gt;</code> and <code>&lt;aside&gt;</code> to make a standard 2-column layout.</li>
1384+
<li>Create a single <code>styles.css</code> file and link to this external stylesheet using the <code>&lt;link&gt;</code> tag from all 3 webpages.</li>
1385+
<li>Update your navigation to look more tab- or button-like.</li>
1386+
</ul>
1387+
<h3>Got questions?</h3>
1388+
<p>
1389+
Post them to Google Moderator: <a href="http://goo.gl/mod/c4cm" target="_blank" >http://goo.gl/mod/c4cm</a>
1390+
</p>
1391+
</article>
1392+
1393+
<!-- SLIDE: CSS -->
1394+
<article class='slide slide-list'>
1395+
<h2>Bonus: Try out web fonts</h2>
1396+
<p>When you get bored of Arial and Georgia, go to the <a href="http://www.google.com/webfonts/" target="_blank">Google Web Fonts</a> website and find a font that you like.</p>
1397+
<ol>
1398+
<li>Click on the "Quick-use" button for that font.</li>
1399+
<li>Scroll down to find the supplied <code>&lt;link&gt;</code> tag. Copy and paste it into your own HTML file.</li>
1400+
<li>Integrate the fonts into your CSS by using their supplied <code>font-family</code>. For example, add their <code>font-family</code> to your <code>h1</code> CSS selector.</li>
1401+
<li>Make sure your files are saved and view your web page in the browser. New fonts are that easy!</li>
1402+
</ol>
1403+
</article>
1404+
1405+
<!-- SLIDE: CSS -->
1406+
<article class='slide slide-list'>
1407+
<h2>Bonus: CSS patterns</h2>
1408+
<p>CSS is great because it can reduce the number of image files you need to create. You can even create <a href="http://lea.verou.me/css3patterns/#" target="_blank">patterns purely out of CSS</a>!</p>
1409+
<ol>
1410+
<li>Click on a pattern that you like.</li>
1411+
<li>Copy the supplied CSS.</li>
1412+
<li>Instead of an "ad" in your sidebar, paste the CSS into your <code>aside</code> selector.</li>
1413+
<li>Or apply it to your <code>body</code> selector to change up the entire page.</li>
1414+
</ol>
1415+
</article>
1416+
13781417
<!-- SLIDE: CSS -->
13791418
<article class='slide slide-list'>
13801419
<h2>CSS reference</h2>

0 commit comments

Comments
 (0)