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

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.