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 Responsive Web Design and Testing Build a Three Column Layout

Sean Barry
Sean Barry
4,264 Points

Identifiers aren't recognizing

What am I doing wrong?

HTML:

<section id="primary">
        <h3>General Information</h3>
        <p>Get in touch with me by sample text
            Get in touch with me by sample text
            Get in touch with me by sample text
         Get in touch with me by sample text</p>     
        <p> Please, if sample text, sample text sample text 
            Please, if sample text, sample text sample text 
            Please, if sample text, sample text sample text 
        Please, if sample text, sample text sample text </p>
    </section>
    <section id="secondary">
              <h3>Contact Details</h3>
                <ul class="contact-info">
              <li class="phone"><a href="tel:555-6425">555-6425</a></li>
              <li class="mail"><a href="mailto:sean@example.com">sean@example.com</a></li>
              <li class="twitter"><a href="https://twitter.com/intent/tweet?screen_name=nickrp">@nickrp</a></li>
          </ul>
    </section>

CSS:

@media screen and (min-width: 480px) {

    /* Two Column layout */

    #primary {
        width: 50%;
        float: left;
    }

    #secondary {
        width: 40%;
        float: right;
    }
}
ALFRED MOHENU
ALFRED MOHENU
1,499 Points

Your code seems to working fine. Try removing the @media.... code block and be left with just the #primary and #secondary code blocks and examine the results.

Christof Baumgartner
Christof Baumgartner
20,864 Points

If you still have this problem, could you include the complete index.html file? Maybe there is something wrong with your stylesheet-import. I can't see an error in your code.