Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homework_2 complete #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions starter-code/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
body{
margin:5% 20% 5% 4%;
font-family: 'Lato', sans-serif;
}

header h1{
font-family: 'Lato', sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you set the font-family in the body above, you don't have to reset it here again.

font-weight: 300;
font-size:40px;
margin: 0 auto;
}

header h1 a{
text-decoration: none;
color:#FAD7A0;
font-size:50px;
}

header h2{
font-family: 'Lato', sans-serif;
font-weight: 400;
margin: 5px 0;
font-size: 25px;
}

header nav{
padding:5px 0;
}

header nav a{
color:#DDDDDD;
padding:25px 0 0 0;
letter-spacing: 1px;
border-bottom: 1px solid #DDDDDD;
text-decoration: none;
margin: 0 10px 5px 0;
}

header nav a:hover {
color: #ABB544;
border-bottom: 1px solid #ABB544;
}

header nav a:first-child{
color:#DDDDDD;
padding:20px 0 0 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another way to write this since you're only adding padding to the left is padding-left: 20px;

margin: 0 10px 0 0;
}

h3{
color:#DDDDDD;
font-weight: 500;
font-size:30px;
margin:50px 0 0 0;
}

article h2{
margin: 10px 0;
}

article h2 a{
font-family: 'Lato', sans-serif;
font-weight: 400;
font-size:30px;
text-decoration: none;
color:black;
}

img{
width: 100%;
height: auto;
}

article p{
letter-spacing: .5px;
font-size:15px;
margin: 20px 0;
line-height: 1.5em;
}

article p::first-letter{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

font-size: 600%;
color: #DDDDDD;
float:left;
margin: .3em .1em .4em 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you're trying out ems here! But make sure you are consistent in whatever you choose. So if you start off setting margins in ems, then stick with it throughout.

}

article h4 a{
color:#FAD7A0;
float:right;
text-decoration: none;
}

article {
padding-bottom:65px;
border-bottom: 1px solid #DDDDDD;
}

footer{
padding:50px 0 5px 0;
}

footer nav a{
color:#FAD7A0;
}

footer p{
color: #DDDDDD;
}

2 changes: 1 addition & 1 deletion starter-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ <h4><a href="#">Continues...</a></h4>
<p>&copy; 2015 Rugged Industries, Inc.</p>
</footer>
</body>
</html>
</html>