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 trialNathan Dragoo
16,468 PointsI have made the changes in this latest section and now my pictures will not appear?
@media screen and (min-width: 480px){
body {
background: navy;
}
/*********************
Two column layout
**********************/
#primary {
width:50%;
float:left;
}
#secondary {
width: 40%;
float: right;
}
/*********************
3 * 5 = 15
100% - 15% = 85%
85 / 3 = 28.333333333333333
**********************/
/*********************
PAGE: PORTFOLIO
**********************/
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(4n) {
clear: left; }
}
/*********************
PAGE: ABOUT
**********************/
.profile-photo {
float: left;
margin 0 5% 80px 0;
}
@media screen and (min-width: 660px) {
body {
background: darkgreen;
}
/*********************
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 #599a68;
margin-bottom:60px;
}
}
2 Answers
Robert Richey
Courses Plus Student 16,352 PointsThe only error I noticed with your code, without testing it, is that in the following line, margin is missing a colon :
to separate the property from the value - in the 'Page About' section.
margin 0 5% 80px 0; /* missing : after margin */
margin: 0 5% 80px 0; /* fixed */
Please let me know if this doesn't help, and I'll spend more time trying to figure out what's going on.
Cheers
Nathan Dragoo
16,468 PointsThanks for the responses, they are very kind and much appreciated. Luckily, I found out my main problem was that my img folder got inside the css folder. Once I separated the two the images all reappeared.
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi Nathan,
I added markdown to help make the code more readable. If you're curious about how to add markdown like this on your own, checkout this thread on posting code to the forum . Also, there is a link at the bottom called Markdown Cheatsheet that gives a brief overview of how to add markdown to your posts.
Cheers!