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 trial

CSS

Kyle Biancardi
Kyle Biancardi
1,674 Points

how to get rid of the border underneath my nav bar!

hello again,

i can figure out where i went wrong with my css. i would like to have my page set up so that my nav bar and background to my nave bar are flush up against the white background of my page content. please help

thank you in advance,

kyle

here is my url http://port-80-36ggxrr814.treehouse-app.com/about.html

my code for css page

/******************************
 General Basic Design CSS Page
******************************/
a {
 text-decoration: none;
}

img{
max-width: 100%;
}

h3{

}

}
/**************************
Page Content imgs, captions
**************************/
#wrapper{
  max-width: 940px;
  margin:0 auto;
  text-align:center;
  padding:0 5%;
  font-family: 'ntr',sans-serif;
}
/******************
    Headlines
******************/
#logos{
  text-align: center;
  margin:0;
}
h1 {
  font-family: 'cinzel decorative', sans-serif;
  margin:5px 0;
  padding-top: 0;
  font-size:2.75em;
}
h2{
  font-family:'cinzel decorative', sans-serif;
  margin: -2px 0 0;
  padding-bottom:-3%;
  font-size: 1.35em;
}
header{
  float: left;
  margin: 0;
  padding: 5px 0 0 0;
  width:100%;
  background:#990000;
}
h1,h2, h1:visited{
 color:#fff; 
} 
/******************
 Navigation 
******************/
nav{
  font-family:'poiret one',sans-serif;
  font-weight:800;
  font-size:1.75em;
}
nav li{
  display: inline-block;
  margin: 0 px 0 10px; 
  padding: 10px 10px;
}
nav{
   text-align: center;  
}
nav{
  background:#cccccc;
}
nav a, nav a:visited{
 color:#fff;
}
nav a.selected{
color:#cc0000;
} 
nav a:hover{
color:#cc0000;  
}
/******************
    Body
******************/
body{
  background:#fff;
}
footer{
  clear:both;
  font-size: 0.75em;
  text-align:center;
  color:#999;
  padding-top:-5px;
}

.thumbs img{
  height:30px;
  Width:30px;
  margin:0 5px;
}

/**************************
Portfoilio Design
**************************/

#Gallery{
  margin:0;
  padding:0;

}

#gallery li{
  list-style:none;
  float:left;
  width:45%;
  margin:2.5%;
  background:#f5f5f5;
  text-align:center;
}

#gallery li a p{
margin: 0;
padding: 2.5%;
color: #bdc3c7;
font-size: 0.25em;
}

/**************************
ABOUT
**************************/

.profile-pic{
  display:block;
  margin: 25% auto 25px;
  max-width: 150px;
  border-radius:100%;
  padding-top:25px;
}

section{
padding:20px;

}

3 Answers

Kyle Biancardi
Kyle Biancardi
1,674 Points

i havent havent gotten that far yet but i think you may be mistaken the word content for contact it under my about and my portfolio pages...well all of them but i am specifically talking about my about page.

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

I put your code through the CSS validator and it got 4 errors.