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

HTML

Collin Bugash
Collin Bugash
882 Points

I set an id to a <div id="a"> and on my CSS, I typed '#a' to style it. When I try to style it doesn't change.

Here is my html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Collin Bugash | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="main.css" type="text/css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Collin Bugash</h1> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul>
</nav> </header> <div id="wrapper"> <section> <ul> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Playing with blending modes in PhotoShop.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>Trying to create an 80's style of glows. </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Dribs created using PhotoShop brushes.</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>Creating shapes using repitition.</p> </a> </li>
</ul> </section> <footer> <a href="https://twitter.com/nickrp"><img src="img/twitter-wrap.png" alt ="Twitter Logo"></a> <a href="facebook.com/nickpettit"><img src="img/facebook-wrap.png" alt ="Facebook Logo"></a> <p>Ā© 2016 Collin Bugash.</p> </footer> </div> </body> </html>

Here is my CSS:

a { text-decoration: none; }

wrapper { max-width: 940px; margin: 0 auto; padding: 0 5%; background: blue; }

logo { text-align: center; margin: 0; }

NOTE: I am following the "Make A Website" course. Also the 'wrapper' and 'logo' have a # before them.

I didn't see your div with the id "a". but I did see one of your p's doesn't have a closer .

Collin Bugash
Collin Bugash
882 Points

Yes, I only added 'a' as a placeholder, and sadly closing the paragraph did not help.

the css you gave doesn't have the id selector for the "a" place marker. the #.

Collin Bugash
Collin Bugash
882 Points

I was confused at your last comment, the 'a' I put in the question was just an example, the actual id's I used were 'logo' and 'wrapper'. I put a note at the end stating there was a '#' before them.

2 Answers

Jason Ziegler
seal-mask
.a{fill-rule:evenodd;}techdegree
Jason Ziegler
Full Stack JavaScript Techdegree Student 36,760 Points

check your link href filepath:

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="main.css" type="text/css">

Which css file are you putting this in and is it linked correctly?

Collin Bugash
Collin Bugash
882 Points

This does not seem to help the issue, could there be a bug with the workshop?