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 trialBrendan O'Connor
4,091 PointsFloat not working, ideas?
Hi,
My attempted copying of what is being done in this video does not lead to the text wrapping around the image, though I believe I copied correctly--maybe someone can catch an error or otherwise give some guidance?
HTML:
<img
src="https://i0.wp.com/css-tricks.com/wp-content/csstricks-uploads/thebox.png?resize=570%2C248"
alt="illustration of the CSS box model"
class="small-img"
/>
CSS:
.small-img {
float: left;
width: 300px;
margin: 0 1rem 1rem 0;
}
Thanks!
Brendan
1 Answer
Steven Parker
231,275 PointsThere's no actual text here. The only thing that looks like text is actually part of the image.
Brendan O'Connor
4,091 PointsBrendan O'Connor
4,091 PointsYeah, I guess I'm not sure that was the issue...for some reason in the later lesson on media queries, when i moved it within a media query, it worked 🤷🏻♂️
Thanks for feedback though!