Bummer! You must be logged in to access this page.

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

CSS Not appearing on my Website

So, i'm working on the front end development course and i'm on making a website. I'm stuck on the adding Iconography video because it seems like my CSS wont apply to my website. Here is the code that I have:

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

.contact-info a { display:block; 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/phone.png'); }

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

.contact-info li.twitter { background-image: url('../img/twitter.png'); }

I went through several times and made sure it matched the video, can someone tell me whats wrong?

by the way, all other CSS is working. Here is the respective HTML.

<head>
      <meta charset="utf-8">
      <title> Jaxon Gonzales | Designer</title>
      <link rel="stylesheet" href="css/normalize.css">
      <link href='https://fonts.googleapis.com/css?family=Fjalla+One|Raleway:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'>
      <link rel="stylesheet" href="css/main.css">
   </head>

   <body>
      <header>
         <a href="index.html" id="logo">
            <h1>Jaxon Gonzales</h1>
            <h2>Designer</h2>
         </a>
         <nav>       
            <ul>

               <li><a href="index.html">Portfolio</a></li>
               <li><a href="about.html">About</a></li>
               <li><a href="contact.html" class="selected">Contact</a></li>

            </ul>
         </nav>
      </header>
      <div id="wrapper">
         <section>
            <h3>General Information</h3>
            <p>I am not currently looking for new design work, but I am available for speaking gigs and similar engagements. If you have any questions, please don't hesitate to contact me!</p>
            <p>Please only use phone contact for urgent inquiries. Otherwise, twitter and E-mail are the best way to reach me.</p>
         </section>
         <section>
            <h3> Contact Details </h3>
            <ul class="contact-info">
               <li class="phone"><a href="tel:512-111-1111">512-111-1111</a></li>
               <li class="mail"><a href="mailto:someone@somewhere.com">someone@somewhere.com</a></li>
               <li class="twitter"><a href="http://twitter.com/intent/tweet?screen_name=nickrp" target="_blank">@nickrp</a></li>
            </ul>
         </section>
         <footer>
            <a href="https://twitter.com"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> 
            <a href="https://facebook.com"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
            <p>&copy; 2016 Jaxon Gonzales</p>
         </footer>
      </div>

It would help to be able to see the HTML you're using.

Yep, css looks good depending on the html

1 Answer

check your file path. make sure your imgs are in the correct place, and your src's are correct.

I've checked every line of code and can't find the problem. I don't know if you guys will be able to see this but here is the link to my workspace:

https://teamtreehouse.com/workspaces/19030112#

I've checked every line of code and can't find the problem. I don't know if you guys will be able to see this but here is the link to my workspace:

https://teamtreehouse.com/workspaces/19030112#

oops, sorry for the double post