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!
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
websites and flexbox
Does website content sit inside a flexbox? What I mean is does the resizing of websites take place because most of the content you see is in a flexbox?
Jamie Moore3,997 Points
That entirely depends on how the website has been built. Flexbox is a good option for responsive content, but a lot of people also used percentages, rather than absolute sizes for responsive content.
For example, if you have a div with the width set to
100% rather than say,
768px, the div will be 100% of the viewport. You can also use viewport-based widths, such as
100vw, which means, 100% of the width of the viewport.
Hope this helps!