Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Responsive Layouts Media Queries Creating Breakpoints

Sean Flanagan
Sean Flanagan
33,231 Points

Extra credit

Hi.

"Fork the template provided in the Workspaces associated with this course, and then remove all the media queries. Next, try creating your own breakpoints based on the content. Finally, test your breakpoints on any web browsing devices you have available."

What's the best approach to this? I was thinking of using relative measurements (not px) and being careful not to create too many breakpoints.

I would appreciate any constructive feedback please.

Sean

2 Answers

Cristiano Porto
Cristiano Porto
5,848 Points

Yea, sounds like you got the idea. You want to keep the design responsive but yet not too crowded with dozens of breakpoints. normally 3-4 is all you need... Such as mobile, tablets, and desktop. Try to edit css on @media query strictly related to the responsiveness. it's easy to get carried away and do regular css changes under media query. Also don't get too paranoid over getting perfect fit into every device.

Hope I was able to give some helpful tips

Sean Flanagan
Sean Flanagan
33,231 Points

Hi Cristiano.

Yeah your tips were very helpful. They earned you an upvote and Best Answer.

Thank you

Sean