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 trialNick Hopkins
1,386 PointsBullet points and other coding still wont work.
I look over my doing but ever thing looks fine but the bullet points and the hover and other elements are still not working.
HTML file
<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.</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt="">
<p>Drips 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 repetiton.</p>
</a>
</li>
CSS FILE
/**********************
PAGE:PORTFOLIO
**********************/
gallery {
margin: 0; padding: 0; list-style: none; }
gallery li { float: left; width: 45%; margin: 2.5%; background-color :#f5f5f5; color: #b2b1b1; }
Can you see and tell me what i did wrong?
2 Answers
Jon Roobottom
1,045 PointsHi, looks like you're missing a top <li>, and also the opening and closing <ul> and </ul> tags.
Try this:
<ul class="gallery">
<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.</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt="">
<p>Drips 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 repetiton.</p>
</a>
</li>
</ul>
The other thing you're missing is the "." before "gallery" in your css file:
.gallery {margin: 0; padding: 0; list-style: none; }
.gallery li { float: left; width: 45%; margin: 2.5%; background-color :#f5f5f5; color: #b2b1b1; }
Hope this helps.
jamied
14,467 PointsHi Nick,
I'll break your question up into a few sections - I ran into a couple of these myself. It might be advantageous to show us your full HTML page. Hope this helps!
-
I was having a look at the code you copied from your main.css page. I noticed you left out the # symbol prior each gallery .... try replacing your CSS with this...
#gallery { margin: 0; padding: 0; list-style: none; }
#gallery li { float: left; width: 45%; margin: 2.5%; background-color: #f5f5f5; color: #bdc3c7; }
-
Check your CSS for the hover section... it should look like this...
nav a.selected, nav a:hover { color: #AE61FA; }
Since you haven't shown us your HTML for your nav section, we can't see if you've correctly named your nav anchors. It might help if you show us your nav section on your HTML page...it should read something similar to this....
<nav>
<ul>
<li><a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>