Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Responsive Website Responsive Design Content Defined Breakpoints

Ian Mackenzie
Ian Mackenzie
11,062 Points

Should there be a break in this class name?

<div class="grid_2 omega">

It won't let me select this class and I suspect it is a mistake in the challenge code?

5 Answers

J.T. Gralka
J.T. Gralka
20,126 Points

Ah! Good to hear you solved the code challenge!

Yeah, remember that .omega is its own class that's part of the grid layout stylesheet, and that page elements can have more than one class assigned to them by placing a space between each class:

<div class="message error omega">
    <!-- more html would go here... -->
</div>

In this case, there are three (arbitrary) classes assigned to the div, and each class might do something different to the div irrespective of the other classes. The thing to notice here is that there's a space between each of the class names in the class attribute of the HTML tag. Don't let the double-quotes confuse you into thinking that message error omega is the one long class name!

Again, glad to hear that you've figured everything out! Best of luck!

J.T. Gralka

Eric Martz
Eric Martz
16,007 Points

Can you post the code you are using?

Ian Mackenzie
Ian Mackenzie
11,062 Points

Hi Eric,

I worked it out, but thanks for your response.

J.T. Gralka
J.T. Gralka
20,126 Points

Hi Ian Mackenzie,

I just retook the code challenge to see if I could spot the mistake you're talking about, and I couldn't find it. Can you maybe tell us which class(es) you're trying to select, or what attempts you've taken towards completing this code challenge? Perhaps you're defining your @media rule improperly... In any case, there is in fact a solution to all three steps of the code challenge! I might suggest you try to walk us through what you've already tried so that we can help guide you along!

Best of luck,

J.T. Gralka

Ian Mackenzie
Ian Mackenzie
11,062 Points

Hi JT,

I've worked it out, there was two classes that I could have used. one was grid_2 the other was omega. It was written like this, grid_2 omega so I thought this was one class but it is two.

Thanks for your assistance.

Cheers, Ian

Ian Mackenzie
Ian Mackenzie
11,062 Points

yes a good lesson learnt on multiple classes.