Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Selectors Selectors - Beyond the Basics Attribute Selectors Challenge

It would be super cool if I could opt to see the solution when I'm stuck! Can this be a thing?

I'd like to see the solution to the code challenge

style.css
/* Complete the challenge by writing CSS below */

img 
index.html
<!DOCTYPE html>
<html>
<head>
    <title>Selectors</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href='http://fonts.googleapis.com/css?family=Nunito:400,300' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="base.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
    <div id="container">
        <form class="form-contact">
        <img src="avatar.png" title="avatar" alt="">

          <label for="un">Username:</label> 
          <input type="text" id="un">

        <label for="pw">Password:</label>
        <input type="password" id="pw">

          <input type="submit" value="Sign up">
        </form>
    </div>
</body>
</html>

I'm at the same level and have thought the same thing. Without clear examples pointing out how I'm wrong and the changes I need to make I don't have the experience at this level to get those answers myself. I hope someone comes up with a solution to this problem for people like you and I!

2 Answers

I have thought of this many times, but ultimate I was glad I couldn't get the answer easily because even when I thought I would be stuck forever I would get it after more tries or by checking the forums. I've even googled docs to try to figure it out and I always feel better when I get the answer after all that work.

Absolutely! It is far more satisfying to figure out the answer yourself. And, more often than not, I believe, a gentle nudge in the right direction is far better than just handing out the answer to a problem. :)

I think people have different learning styles, I have tried looking the info up myself but I never seem to be able to find it.

Jeremiah Johnson, oh absolutely they do. I'm a hands on learner. I have to practice, practice, practice something for it to get stuck in my big ol' head! lol. It's always okay to ask for help, and that's why we're here typing away! I certainly don't get paid to be a moderator or be on the forums helping people. I just like to do it lol. If you ever have any questions dealing with web development, these forums on Treehouse are an excellent place to ask them.

This is why the forums exist. It is difficult to provide intuitive feedback via an algorithm like the one Challenges uses. I, and many others, are on the forums quite often and are willing to help with any coding problems you have.

If you're stuck on the first part of the challenge, use the following template for how to set up your img selector:

//Select any named element that has an attribute that is equal to "value"
//So replace the words here with what you're looking for
//The element is img
//The attribute is title
//The value is "avatar"
element[attribute="value"] {
border-radius: 50%;
}

That should help you to solve the challenge.