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 trialJeriah Bowers
Front End Web Development Techdegree Graduate 20,590 PointsProfile photo and photos on about page won't float.
My profile photo on my about about page won't float/clear left when the site is sized to that of a desktop, and neither will my photos on my portfolio page.. I don't know what's wrong and I've spent to much time on this already. Thank-you.
Dovie Kazinec
1,635 PointsLooks like your workspace doesn't work.
2 Answers
Dovie Kazinec
1,635 PointsYour responsive.css should look like this:
@media screen and (min-width: 480px) {
/**********************
TWO COLUMN LAYOUT
***********************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/**********************
PAGE: PORTFOLIO
***********************/
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(4n) {
clear: left;
}
/* above with the nth-child is stating that any styling that's here be applied to every 4th element in gallery list */
/**********************
PAGE: PORTFOLIO
***********************/
.profile-photo {
float: left;
margin: 0 5% 80px 0;
}
}
@media screen and (min-width: 660px) {
/**********************
HEADER
***********************/
nav {
background:none;
float: right;
font-size: 1.125em;
margin-right: 5%;
text-align: right;
width: 45%;
}
#logo {
float: left;
margin-left: 5%;
text-align: left;
width: 45%;
}
h1{
font-size:2.5em;
}
h2{
font-size:0.825em;
margin-bottom: 20px;
}
header {
border-bottom: 5px solid #558ba0;
margin-bottom: 60px;
}
``
Jeriah Bowers
Front End Web Development Techdegree Graduate 20,590 Pointshttps://teamtreehouse.com/workspaces/23768392# Maybe it's in my html? I've looked over everything over and over and cant't find anything and I can't move on in my tech degree till I do. Maybe it's even an error in workspaces?? Any help is appreciated. Thanks.
Dovie Kazinec
1,635 PointsPlease fix your workspace.
Jeriah Bowers
Front End Web Development Techdegree Graduate 20,590 PointsJeriah Bowers
Front End Web Development Techdegree Graduate 20,590 Pointshttps://teamtreehouse.com/workspaces/23768392# here is a link to my responsive.css I'm currently stuck.