html - CSS classes being called but not having effect -


i have following code:

<html> <head> <style> .gr {     color: "#ffffff";     background: "#00ff00";     border-radius: 8px 0 0 15px; }  .or {     color: "#00ff00";     background: "#ffa500";     border-radius: 0 15px 8px 0; } </style> </head> <body> <span class="gr">test1</span><span class="or">test2</span><br> </body> </html> 

but classes aren't having effect @ all. remains way if call external stylesheet. but, if <span style="color:#ffffff;background:#00ff00;border-radius:8px 0 0 15px"> works. can me this?

you need remove quotes in css.

.gr {     color: #ffffff;     background: #00ff00;     border-radius: 8px 0 0 15px; }  .or {     color: #00ff00;     background: #ffa500;     border-radius: 0 15px 8px 0; } 

working jsfiddle here http://jsfiddle.net/u36k17v6/1/


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -