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 trialMatthew DeFrancesco
479 PointsNo space between the navigation bar and Profile pic on About page, and the top line of Contact page.
/********************
GENERAL
*********************/
<!--CSS rule contains selector and declarations-->
<!--CSS selector defines elements on page to which declarations should be applied -->
<!--CSS declaration pairs properties and values to define how an element should be styled-->
body <!--selector--> { <!--Text inside curly brackets = declaration-->
font-family:<!--property--> 'Open Sans', sans-serif; <!--value--> <!--Defines which fonts should be applied to text-->
}
#wrapper {
max-width: 940px;
margin: 0 auto; <!--Sets the space around the exterior sides of an element-->
padding: 0 5%; <!--Sets the space on the interior four sides of an element-->
}
a {
text-decoration: none; <!--Add or remove underlines from text-->
}
img {
max-width: 100%; <!--Sets max width of an element-->
}
/********************
HEADING
*********************/
header{
float: left; <!--Allows an element to be taken out of the normal flow and placed to the left or right of its container-->
margin: 0 0 30px 0;
padding: 5px 0 0 0;
width: 100%;
}
#logo {
text-align: center; <!--Sets justification of text-->
margin: 0;
}
h1 {
font-family: 'Changa One', sans-serif;
margin: 15px 0;
font-size: 1.75em;
font-weight: normal; <!--Sets the visual weight of text, also known as "bold"-->
line-height: 0.8em;, <!--Sets the amount of space between each line of text-->
}
h2 {
font-size: 0.75em;
margin: -5px 0 0;
font-weight: normal;
}
h3 {
margin: 0 0 1em 0;
}
/********************
NAVIGATION
*********************/
nav {
text-align: center;
padding: 10px 0;
margin: 20px 0 0;
}
nav ul {
list-style: none; <!--Sets the sytle of numbers or bullet points for ordered and unordered lists-->
margin: 0 10px;
padding: 0;
}
nav li {
display: inline-block; <!--Sets how an element should be rendered-->
<!--Block-level elements occupy the width of their containers and include a line break (eg. <div>, <h1>, <p>)-->
<!--Inline elements occupy the width of their containers and do not begin a new line (eg. <a>, <img>)-->
}
nav a {
font-weight: 800;
padding: 15px 10px;
}
/********************
FOOTER
*********************/
footer {
font-size: 0.75em;
text-align: center;
clear: both; <!--Specifies whether an element can be adjacent to floated elements moved down and "clear" of any floated elements-->
padding-top: 50px;
color: #ccc; <!--Sets text color of an element-->
}
.social-icon {
width: 40px;
height: 40px;
margin: 0 5px;
}
/********************
PAGE: PORTFOLIO
*********************/
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
#gallery li {
float: left;
width: 45%;
margin: 2.5%;
background-color: #f5f5f5; <!--Sets the background color of an element-->
color: #bdc3c7;
}
#gallery li a p{
margin: 0;
padding: 5%;
font-size: 0.75em;
color: #bdc3c7;
}
/********************
PAGE: ABOUT
*********************/
.profile-photo {
display: block;
max-width: 500px;
margin: 20px auto 30px auto;
border-radius: 100%; <!--Defines the roundness of a border corner-->
}
/********************
COLORS
*********************/
/* site body */
body {
background-color: #fff;
color: #999;
}
/* green header */
header {
background: #6ab47b;
border-color: #599a68;
}
/* logo text */
h1, h2 {
color: #fff;
}
/* nav background on mobile */
nav {
background: #599a68;
}
/* links */
a {
color: #6ab47b;
}
/* nav link */
nav a, nav a:visited {
color: #fff;
}
/* selected nav link */
nav a.selected, nav a:hover {
color: #32673f;
}
1 Answer
Joshua Harman
8,821 PointsWould you mind taking a screen shot of the issue? I copy and pasted your css and didn't see any problems...