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 Selectors Selectors - Beyond the Basics DRY CSS

Not working: Multiple classes

Hi folks,

I've followed the first step under DRY Classes of targeting the form with .br {border-radius: .5em;}, and added the class name br to <form class="form-contact br"> in the HTML.

It appears to not work when an element has multiple classes, in this case form-contact and br. I've gone over it several times very carefully and the preview still shows something completely different to Guil's.

Any help appreciated.

Simon

1 Answer

Double check the style sheet to make sure that the cascading nature of CSS isn't applying styles from the .form-contact rule after declaring styles in the .br rule. If both rules include border-radius properties the last one will declared will overwrite the first one. Also, paste the applicable sections of code in your question so others are able to see what could be causing the problem.