-
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
Jesse Lewis - mockup html css lab homework. #20
base: master
Are you sure you want to change the base?
Conversation
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.
The best way to improve your CSS is keep things DRY. That means when you start writing the same properties and values (i.e.font-size: 16px) more than once, think of a way to combine selectors so you only have to write it out one time. There is a lot of repetition in your code right now. Great job for your first mock up challenge!
max-width:700px; | ||
padding-left:24px; | ||
} | ||
|
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.
Since you are using the same two properties and values here, you should combine the selectors:
header, article, footer {
max-width:700px;
padding-left:24px;
}
|
||
img { | ||
max-width: 100%; | ||
max-height: 100%; |
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.
You shouldn't have to set the height and width for an image, otherwise it could lead to stretching and rendering the image wonky. By using just the max-width, the height will adjust appropriately.
-webkit-margin-before: 0; | ||
-webkit-margin-after: 0; | ||
-webkit-margin-start: 0px; | ||
font-weight:lighter; |
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.
Rather than using the value "lighter" you should specify the font-weight given by the google font. i.e. 300.
} | ||
nav a { | ||
color: #ccc; | ||
font-stretch: 20; |
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.
I think you were trying to add space between the letters here. Next time use letter-spacing: 1px;
and adjust from there.
submitting css challenge homework from Wk1-Day 3.