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 How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Josh Leider
Josh Leider
2,681 Points

No space between list items

Nick's website has space in between each list item the defines the rows and the columns, but there is no space between mine. Any idea why?

Can you post your code

Sam Baines
Sam Baines
4,315 Points

You will need to post your code josh to show us what you have written - then we can suggest changes and help you. To post your code check the markdown cheatsheet out at the bottom of the comment box.

rydavim
rydavim
18,814 Points

Welcome to Treehouse!

If you could please post a link to a workspace snapshot using the camera icon in the top right of your workspace, Jake Zeal , Sam Baines , or myself should be able to help you. :)

1 Answer

The CSS code should be like this:

gallery li {

float: left; width: 45%; margin: 2.5%; background-color: #f5f5f5; color: #bdc3c7; }

gallery li a p {

margin: 0; padding: 5%; font-size: 0.75em; color: #bdc3c7; }

where id #gallery is unorodonate list of index.html. Like this:

<div id="wrapper"> <section> <ul id="gallery"> <li> <a href="/img/numbers-01.jpg"> <img src="/img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li> ....

I hope my answer to you is helpful.