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

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. :)