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

HTML How to Make a Website Adding Pages to a Website Add and Style Icons

quiz question

ANy help on what I'm doing wrong here?

css/main.css
/****** 
GENERAL
******/ 
a {
  text-decoration:none;
  }
#wrapper {
  max-width:940px;
  margin: 0 auto;
}

body{
    font-family: 'Open Sans', sans-serif;align-content:
}

img {
    max-width:100%
}

h3 {
    margin: 0 0 1em 0;
}

/****** 
HEADER
******/ 

header {
    float: left;
    margin: 0px 30px 30px 0px;
    padding: 45px 0px 0px 0px;
    width: 100%;
}

#logo {
  text-align:center;
  margin: 0;
}

header {
    background:#54b8b2;
}

h1 {
    color: #ffffff;
    font-family: 'Cabin', sans-serif;
    margin: 0 0;
        padding: 20px 10px;
    font-size: 2.15em;
    font-weight: 800;
    line-height: 0.8em;
}
h2 {
    color: #ffffff;
    font-size: 0.95em;
    margin: -5px 0 0;
    font-weight: normal;
}

/****** 
NAVAGATION
******/ 

nav {
    text-align:center;
    padding: 10px 0px;
    margin: 40px 0px 0px  0px;
}

nav ul {
list-style-type: none;
margin: 0px 0px 0px 0px;
padding: 20px 0px;
background-color: #167c72;

}

nav li {
display: inline-block;
}

nav a {
    font-weight: 800;
      display: block;
    color: white;
    text-align: left;
    padding: 15px 40px;
    text-decoration: none;
border-right: 3px solid #bbb;
}
nav a, nav a:visited {
    color: #ffffff}

nav a:hover{
    color: #ffffff;
background-color:#000000;
}

/****** 
FOOTER
******/ 
footer {
    font-size: 0.75 em;
    text-align:center;
    padding-top: 30px;
}

/****** 
PAGE PORTFOLIO
******/ 

#gallery{
    margin: 0;
    padding: 0;
    list-style: none;
}

#gallery li {
    float:left;
    width: 100%;
    margin: 0;
    background-color: #f5f5f5;
    color:#bdc3c7;
}

/****** 
PAGE ABOUT
******/ 

.profile-photo {
    display:block;
    max-width: 150px;
    margin: 0 auto 30px;
    border-radius: 100%;
}

/****** 
CONTACT
******/ 
    .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

contact.info {
    display:block-level;
    min-height: 20px;
    background-repeat:no-repeat;
    background-size: 20px 20px;
    padding: 0 0 0 30px;
    margin: 0 0 10px;
}
.contact-info li.phone {
    background-image: url('../img/a1.JPG');
}

.contact-info li.mail {
    background-image: url('../img/a2.JPG');
}

.contact-info li.linkedin {
    background-image: url('../img/a3.JPG');
}

/****** 
PHOTO SECTION OF SERVICES
******/ 
div.img {
    margin: 10px;
    border: 1px solid #ccc;
    float: left;
    width: 270px;
}

div.img:hover {
    border: 1px solid #777;
}

div.img img {
    width: 100%;
    height: auto;
}

div.desc {
    padding: 10px 0 0 0;
    text-align: center;
}

the question is to select the anchor elements inside the contact-info list. set them to block level elements

1 Answer

Henrique Voni
Henrique Voni
12,296 Points

try:

.contact-info a{
   display: block;
}