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

CSS CSS Selectors Going Further with Attribute Selectors and Pseudo-Classes Substring Matching Attribute Selectors - "Begins With" and "Ends With"

Vincentius Ronalto
Vincentius Ronalto
4,432 Points

I'm just curious..

from this video: https://teamtreehouse.com/library/css-selectors/going-further-with-attribute-selectors-and-pseudoclasses/substring-matching-attribute-selectors-begins-with-and-ends-with sorry unrelated question from the topic:

why does the example website that guil hernandez give is responsive without any media queries? (from the workspace)

When i drag and make the screen smaller, so the picture will be stacked on top of each other (Isn't it responsive?)

I have checked the style.css, there is no magic sauce or anything related in responsive design, or maybe it is from treehouse hidden code? :D

thank you

2 Answers

The parent <div> has a max-width of 610px, which means it can be smaller than or up to that wide. As you shrink the page, the div shrinks and eventually (at about 584px) the space becomes to narrow to support the fixed width (180px + margin and border) of 3 images, so it will drop an image into the next row like it will with most anything.

Vincentius Ronalto
Vincentius Ronalto
4,432 Points

thanks for your explanation, you make it clear