Skip to content

Commit e39c15f

Browse files
committed
changed solution structure to better reflect design html process
1 parent 3ee5f86 commit e39c15f

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

solution-code/css/main.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ light blue: #1c5380
88
body {
99
background: #fff url('../images/bgtile.png') repeat-x;
1010
font: 200 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
11-
margin: 0 auto;
12-
padding-top: 90px;
13-
padding-left: 10px;
14-
padding: right: 10px;
15-
width: 880px;
11+
margin: 0;
1612
}
1713

1814
/*Main CSS*/
15+
main {
16+
width: 880px;
17+
margin: 90px auto 0;
18+
}
19+
20+
main section.section-left {
21+
float: left;
22+
}
23+
1924
main section.section-right {
2025
float: right;
2126
width: 500px;

solution-code/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<body>
88

99
<main>
10+
<section class="section-left">
11+
<img src="images/phones.png" alt="Product Photo">
12+
</section>
13+
1014
<section class="section-right">
1115
<img src="images/brand.png" alt="Instagram">
1216

@@ -23,11 +27,6 @@ <h1>Capture and Share<br>the World's Moments</h1>
2327
<a href="#"><img src="images/badge-android.png" alt="Get it on Google Play"></a>
2428
</article>
2529
</section>
26-
27-
<section class="section-left">
28-
<img src="images/phones.png" alt="Product Photo">
29-
</section>
30-
3130
</main>
3231

3332
<footer>

0 commit comments

Comments
 (0)