Skip to content
Browse files

homework for class 4

  • Loading branch information...
1 parent 1dcb7b3 commit b997aca07c0c3fc24068cb182aa2491199e29584 @cmccaffrey committed Oct 13, 2011
Showing with 24 additions and 19 deletions.
  1. +4 −4 04-class-css/exercise1/index.html
  2. +20 −15 04-class-css/exercise1/style.css
View
8 04-class-css/exercise1/index.html
@@ -14,12 +14,12 @@
<article>
<img src='images/dog.jpg'/>
<h1>Lorem Aliquam erat volutpat</h1>
- <h2>By Frank Doe</h2>
+ <h2>By Frank Doe</h2><br>
<p>Suspendisse mattis metus et justo. Aliquam erat volutpat. Suspendisse
potenti. Nam hendrerit lorem commodo metus laoreet ullamcorper. Proin vel
nunc a felis sollicitudin pretium. Maecenas in metus at mi mollis posuere.
Quisque ac quam sed massa adipiscing rutrum. Vestibulum ipsum. Phasellus
- porta sapien. Maecenas venenatis tellus vel tellus.</p>
+ porta sapien. Maecenas venenatis tellus vel tellus.</p><br/>
<p>Aliquam aliquam dolor at justo. Cum sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Morbi pretium purus a magna.
@@ -32,12 +32,12 @@
<article>
<img src='images/cat.jpg'/>
<h1>Lorem Ipsum</h1>
- <h2>By Frank Doe</h2>
+ <h2>By Frank Doe</h2><br/>
<p>Suspendisse mattis metus et justo. Aliquam erat volutpat. Suspendisse
potenti. Nam hendrerit lorem commodo metus laoreet ullamcorper. Proin vel
nunc a felis sollicitudin pretium. Maecenas in metus at mi mollis posuere.
Quisque ac quam sed massa adipiscing rutrum. Vestibulum ipsum. Phasellus
- porta sapien. Maecenas venenatis tellus vel tellus.</p>
+ porta sapien. Maecenas venenatis tellus vel tellus.</p><br/>
<p>Aliquam aliquam dolor at justo. Cum sociis natoque penatibus et magnis dis
parturient montes, nascetur ridiculus mus. Morbi pretium purus a magna.
View
35 04-class-css/exercise1/style.css
@@ -31,23 +31,28 @@ 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;
+
+#main-content {position:relative;margin:10px;}
+
+img {
+ float: left;
+ margin: 14px
}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
+
+h1 {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 24px;
+font-weight: bold;
}
-table {
- border-collapse: collapse;
- border-spacing: 0;
+
+h2 {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 11px;
+color: gray;
}
+p {
+font-family: Verdana, Arial, Helvetica, sans-serif;
+font-size: 12px;
+}

0 comments on commit b997aca

Please sign in to comment.
Something went wrong with that request. Please try again.