ney17 / prj-rev-bwfs-tea-cozy

0 stars 0 forks source link

If the class is targeting a div you don't need to write div in front of it in the css #7

Closed farishkash closed 7 years ago

farishkash commented 7 years ago

For example in your css you have

div.head1{display:block;
  height: 700px;
padding-top: 60px;
background-image:url(https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-mission-background.jpg);}

You do not need the word div here as .head1 is the class for the div so it is already implied.

Writing this is sufficient

.head1{
display:block;
  height: 700px;
padding-top: 60px;
background-image:url(https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-mission-background.jpg);
}
ney17 commented 7 years ago

Thank you noted.