Skip to content

Commit f6e1eaf

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

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

solution-code/css/main.css

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,45 @@ 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;
2227
}
2328

29+
main section.section-right nav button.home {
30+
float: right;
31+
margin-top: 20px;
32+
background: linear-gradient(#6c90ad, #4a7598);
33+
border: 1px solid #1c5380;
34+
border-radius: 2px;
35+
padding: 5px 7px;
36+
color: white;
37+
}
38+
39+
main section.section-right nav button.home img {
40+
padding-top: 3px;
41+
}
42+
43+
main section.section-right nav button.home span {
44+
margin-left: 5px;
45+
position: relative;
46+
bottom: 5px;
47+
font-size: 15px;
48+
}
49+
2450
main section.section-right article {
2551
background: url("../images/frame.png") no-repeat;
2652
padding: 40px;

solution-code/index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@
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">
11-
<img src="images/brand.png" alt="Instagram">
15+
<nav>
16+
<img src="images/brand.png" alt="Instagram">
17+
<button class="home">
18+
<img src="images/home.png" alt="Home"><span>Login</span>
19+
</button>
20+
</nav>
1221

1322
<article>
1423
<h1>Capture and Share<br>the World's Moments</h1>
@@ -23,11 +32,6 @@ <h1>Capture and Share<br>the World's Moments</h1>
2332
<a href="#"><img src="images/badge-android.png" alt="Get it on Google Play"></a>
2433
</article>
2534
</section>
26-
27-
<section class="section-left">
28-
<img src="images/phones.png" alt="Product Photo">
29-
</section>
30-
3135
</main>
3236

3337
<footer>

0 commit comments

Comments
 (0)