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
Michael Newman
39,508 PointsResponsive Concentric Circles...need help!
I'm working on this simple design in codepen, and I need a bit of help making it more responsive. The design is two concentric circles centered horizontally in a full-width "banner". The circles shrink when you make the browser shorter, but not when you make it more narrow. Any advice on what I may be doing wrong or another way to do it would be a ton of help!
1 Answer
Simon Feuster
Full Stack JavaScript Techdegree Graduate 28,036 PointsHi Michael,
i don't know if its right, but maybe you have to use @media.
example:
@media screen and (min width: 480 px){ .circle-box { width: 40vh; height: 40vh; margin: 0 auto; } }
@media screen and (min width: 300 px){ .circle-box { width: 30vh; height: 30vh; margin: 0 auto; } }
Michael Newman
39,508 PointsMichael Newman
39,508 PointsI think I could get a result that way, but it would clog up my media queries and I can't help but feel like there's a simpler way. Thanks for the input though, I'll mess around with that!