HTML Introduction to HTML and CSS Adding a New Web Page Write the CSS

zaal rottunda
zaal rottunda
681 Points

Can't get any of my css class rules to work? They worked fine in previous videos and everything else is working fine

I can't get any of my rules for the image or the styling to work. I've checked the syntax endlessly but no luck.

".main-image { border: red solid 15px; border-radius: 50%; }" nothing works! :(

2 Answers

Tobias Graefe
Tobias Graefe
10,972 Points

Maybe you have to make sure, that the img element has the right class in your html. Check for typos too ;-)

MD. Rashed Munna
MD. Rashed Munna
2,738 Points

thank you bro Tobias Graefe

zaal rottunda
zaal rottunda
681 Points

I just moved the class rules to the top of the css page and they were applied? it's weird, I didn't alter the text for either class rule but both of them worked when moved to the top.