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
Casey Griswold
1,061 PointsRandom CSS questions
Few things I was wondering about, which I figured someone could elaborate for me.
First, when someone says they're trying to avoid the text from wrapping around the image...what exactly does this mean? The way I imagine it, is like a newspaper article, where text would be to the side as well as below an image. Is this correct? Or is it some error? Because I got the impression from the presenter, that this was bad or undesirable.
And, I know this was covered early on in the CSS videos, but I don't want to scan through them all to find this quick blurb. Why is there sometimes a pound before the property, other times a dot, and other times nothing. For instance, sometimes the property is #gallery or .profile-photo or just nav. Why is that?
2 Answers
James Alker
8,554 PointsThe text wrapping around the image may have been more of a desired effect rather than an issue or problem. Not too sure on that one.
As for the CSS Selectors you can select different elements in various ways depending on how specific you want to be:
Using "#name" targets an element with an "id" attribute of "name" (id's should be unique on a page - so should only select a single element), whereas ".name" targets any element with a class of "name" (could be multiple).
Having no "#" or "." means it targets all elements of a particular type. So just having "p" will select all "p" / paragraph elements on the page.
Hope that helps.
Casey Griswold
1,061 PointsAhhhh, yes. Thanks