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 trialPatrick Gibney
502 PointsTwo 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
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsAny chance you could post your code because it might be easier to help you? ;-)
Patrick Gibney
502 PointsPatrick Gibney
502 Pointsi 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