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
Qamar Ali
10,785 PointsProblems with Three Column Layout(Front End Web Development)
PLEASE HELP !!!!!!!!!!!!!. I posted this question before too but nobody answered. I am trying to build a three column layout but every time i change the size of the screen everything remains the same. My website is also messed up. The images and texts are not in the same place they should be. Here is a link to my html , css and website
https://teamtreehouse.com/workspaces/21817272#
1 Answer
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsHello,
Your workspace link is not working I will post what I have used in the past for this and hopefully it helps you. I often have to use different layouts for different screen sizes. Starting at the mobile size I leave it as one column, i pad, usually 2 and desktop 3 /4. I add media queries in my css code to do this.
If you still need help take a snapshot of your project and I will look and see if I can help.
Happy coding :)
/* tablet sized screen*/
@media screen and (min-width: 769px) {
columns {
-webkit-column-count: 2; /* Chrome, Safari, Opera */
-moz-column-count: 2; /* Firefox */
column-count: 2;
}
/* large sized screen*/
@media screen and (min-width: 1025px) {
columns {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
}
Tracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsTracy Excell
Front End Web Development Techdegree Graduate 15,333 PointsNB// I created a div around the content I was wanting to go into columns, that is what the columns reference is :)