-
Notifications
You must be signed in to change notification settings - Fork 15
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
JayLara Homework Submission -base #16
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
* { | ||
font-family: 'Lato', sans-serif; | ||
font-weight: 300; | ||
} | ||
|
||
body { | ||
width: 900px; | ||
margin: 0 auto; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
h1 { | ||
font-size: 65px; | ||
padding: 0px; | ||
margin: 10px 0px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whenever you are using 0 as a value you do not need to specify the units. 0px = 0% = 0. |
||
} | ||
|
||
h1 a { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Watch your indentations! |
||
color: #f8ce78; | ||
letter-spacing: -2px; | ||
} | ||
|
||
h2 { | ||
padding: 0px; | ||
margin: 10px 0px; | ||
font-size: 25px; | ||
} | ||
|
||
img { width: 100%;} | ||
article { | ||
width: 850px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, set the width with a % so that you are not limiting your site to break on a mobile device. |
||
border-bottom: 3px solid #eae2de; | ||
margin-bottom: 65px; | ||
} | ||
|
||
article p { | ||
line-height: 26px; | ||
} | ||
|
||
article p::first-letter { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice!! |
||
float: left; | ||
padding: 0 5px 0 0; | ||
color: #eae2de; | ||
font-size: 110px; | ||
line-height: 80px; | ||
font-weight: 300; | ||
} | ||
|
||
article h2 a { | ||
color: black; | ||
font-size: 40px; | ||
} | ||
|
||
article h3 { | ||
color: #eae2de; | ||
font-size: 40px; | ||
padding: 0px; | ||
margin: 70px 0px 10px 0px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shorthand way to write this is |
||
} | ||
|
||
|
||
article h4 a { | ||
text-align: right; | ||
color: #f8ce78; | ||
padding: 15px 0; | ||
display: block; | ||
font-weight: bold; | ||
font-size: 18px; | ||
} | ||
|
||
nav { | ||
margin: 20px 0px; | ||
display: block; | ||
} | ||
|
||
header nav a { | ||
color: #eae2de; | ||
font-size: 20px; | ||
margin-right: 20px; | ||
padding-bottom: 5px; | ||
border-bottom: 2px solid #eae2de; | ||
} | ||
|
||
footer { | ||
color: #eae2de; | ||
font-size: 20px; | ||
} | ||
|
||
footer nav { | ||
line-height: 22px; | ||
} | ||
|
||
footer nav a { | ||
color: #f8ce78; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!doctype html> | ||
<!doctype html> | ||
<html lang="en-us"> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the width with a hardcoded px value will make this site unresponsive. Try using margin or % instead.