CSS Responsive Layouts Media Queries Creating Breakpoints

Sean Flanagan
Sean Flanagan
33,224 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,847 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,224 Points

Hi Cristiano.

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

Thank you

Sean