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

Matt Cain submitting mockup-html-css homework #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Matt Cain submitting mockup-html-css homework #6

wants to merge 1 commit into from

Conversation

thrakc3001
Copy link

No description provided.


}

body {

Choose a reason for hiding this comment

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

Since this applied to everything in the html, you want this to be at the top of your CSS file. Styles cascade down so you typically want the least specific selector at the top of the file, and the most specific at the bottom.

nav a{
font-size: 22px;
color: #c4c4c4;
padding: 0px 5px 0px 5px;

Choose a reason for hiding this comment

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

shorthand way to write this: padding: 0 5px;. That sets the top and bottom to 0, left and right to 5px.


body {
font-family: Lato;
padding: 30px 925px 0px 50px;

Choose a reason for hiding this comment

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

This is a pretty huge right padding value. Did you mean to add that much space on the entire body?


h2 {
font-weight: 500;
font-style: bold;

Choose a reason for hiding this comment

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

Bold is an invalid value for font-style. You are basically making this h2 bold by changing the font-weight in the line above.

font-size: 19px;
}

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!


footer nav a{
color: #ffb782;
text-decoration: none;

Choose a reason for hiding this comment

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

You've started to repeat this property over and over throughout the file. Consider creating an anchor a { } selector at the beginning of the file that clears this text-decoration to help keep your code DRY.

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