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 trialTom Cantwell
1,670 PointsOne of my images doesn't line up.
I am in the middle of the Make A Website Project and one of my images (top left) doesn't line up.
http://port-80-u6nioyxoib.treehouse-app.com/about.html
The link to the jpg file:
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentatoin with color and texture.</p>
</a>
</li>
The section sorting the list items (the images):
gallery li {
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7;
}
Can anyone point out where I have gone wrong?
Thanks
1 Answer
bothxp
16,510 PointsHi Tom,
If you take another look at your HTML, just before the 1st li tag you appear to have a ` character. I thought it was a mark on my monitor screen to begin with :-) But just remove that and everything should start to line up.
So:
<ul id="gallery">
`<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentatoin with color and texture.</p>
</a>
</li>
should be:
<ul id="gallery">
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>Experimentatoin with color and texture.</p>
</a>
</li>
Tom Cantwell
1,670 PointsTom Cantwell
1,670 PointsOh, what a stupid mistake!
Thanks so much bothxp