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

Simple css issue .thick-green-border class not going through. What am I doing wrong? #9477

Closed
ROWn1ne opened this issue Jul 1, 2016 · 3 comments

Comments

@ROWn1ne
Copy link

ROWn1ne commented Jul 1, 2016

Challenge Add Borders Around your Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .smaller-image {
    width: 100px;
  }

  .thick-green-border {
    border-width: 10px;
    border-style: solid;
    border-color: green;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image" class="thick-green-border"  src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
@arku
Copy link
Contributor

arku commented Jul 1, 2016

Your image tag shouldn't not have two class attributes. In fact, no html element should have two class attributes.
You add multiple classes to a html element by separating them by spaces. For example,

<h2 class="red-text green-border">Heading</h2>

And this space is not for asking help with challenges. Head over to FCC helproom if you need help.

@ROWn1ne
Copy link
Author

ROWn1ne commented Jul 1, 2016

I knew it was going to be something simple. Thanks a lot arun1595.

@erictleung
Copy link
Member

Closing as it seems the issue has been resolved. Happy coding!

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

No branches or pull requests

3 participants