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

Jesse Lewis - mockup html css lab homework. #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lazercat
Copy link

submitting css challenge homework from Wk1-Day 3.

Copy link

@BritneyJo BritneyJo left a 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;
}

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%;

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;

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;

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants