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

Website layout help?

How do i make my layout responsive to different screen resolutions do i need to have it in on the grid system?

2 Answers

Hi Kask,

It does not need to be on the grid system to be responsive, but that would help you to decide layouts at the different breakpoints. You would set breakpoints in media queries that you setup in your css. I believe you will find that in the CSS Layout Techniques section of the Web Design Track.

Hope that helps, Don

James Barnett
James Barnett
39,199 Points

It does not need to be on the grid system to be responsive, but that would help you to decide layouts at the different breakpoints.

If by "to be responsive" you are referring to the idea of Responsive Web Design then

Fluid grids, flexible images, and media queries are the three technical ingredients for responsive web design, but it also requires a different way of thinking.

From the article that coined the term "Responsive Web Design"

Two points that should be kept in mind:

  1. The statement you quote is taken out of context.
  2. While I would not suggest building a responsive site without a grid the fact remains that elements will respond to whatever breakpoints and percentages are placed in the css and media queries.

Thank you for your input. :)

James Barnett
James Barnett
39,199 Points

Media queries are what apply different CSS rules based on viewport size. Using fluid grids with media queries allow you to create a consistent layout. I'd suggest you use http://simplegrid.info/.

Alright i will try that thank you. :)