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

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Leon Farris
Leon Farris
559 Points

Need help with two column layout

When I did the breakpoints in the file "responsive.css" using the background color test, all worked well. When these were removed and #primary and #secondary ids were added, the browser did not produce a two column view. It did float the "Contact Details" to the right as the browser was stretched but would never make two columns, not matter how wide be screen was pulled. Any thoughts?

2 Answers

Nicholas Olsen
seal-mask
.a{fill-rule:evenodd;}techdegree
Nicholas Olsen
Front End Web Development Techdegree Student 19,342 Points

without seeing the code, all I can say is maybe check the widths of your columns, including any padding, margin and border values.

Alternatively, set * { box-sizing: border-box } at the beginning of your document.

Caroline Hagan
Caroline Hagan
12,612 Points

Leon Farris if you could provide a link to your webpage, or paste in your HTML+CSS into a Codepen, that would help us, to help you :-)