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.

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

Two problems: Contact info pictures and portfolio pictures not formatting

Hi All,

Two problems I've recently ran into after doing this video.

The first problem is that when i create two columns for my contact page my phone and email pictures do not want to shift over into the Contact Details column on the right, rather they seem to be floating in the General Information paragraph in the left hand column. This only happen when you resize the page to a tablet or desktop size and have two columns. Their is no problem when in a mobile size.

The second problem is I have not been using the portfolio pictures. When my web browser (g chrome) is in the tablet or desktop size the pictures and paragraphs are formatted correctly. When i go down the the mobile size I have two columns, one photo in each column. The space on the second row of the first column appears blank and the next photo is in the correct spot (second row second column). This is similar to the problem he was demonstrating in the video, but he has having it in the desktop version and mine is occuring in the mobile. I thought maybe changing my #gallery li:nth-child(4n)....... to 3n would fix it but it just clears the third spot in the desktop app and does not fix the mobile.

I want to say since both problems occur in my mobile, my problem is occurring in my responsive css, but after downloading the project file my responsive css is just like his.

Any help or thoughts I could get on this would be greatly appreciated! I tried to upload pictures but couldn't find a way to. If there is a way to please advise.

Greatly appreciate treehouse and any users help!

Thanks,

Phillip G.

Edit: below is my resposive.css added in this video segment:

@media screen and (min-width: 480px) {

/******************************* TWO COLUMN LAYOUT *******************************/

primary {

width: 50%; float: left; }

seconday {

width: 40%; float: right; }

/******************************* Page: Portfolio *******************************/

gallery li{

width: 28.333%; }

gallery li:nth-child(4n) {

clear:left; }

}

@media screen and (min-width: 660px) {

}

1 Answer

i have added the code from the video. If there is a way to upload an entire feel please advise and I will upload all my css and html