The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Why it is not working
Hello All, I am practicing CSS and do not know why my class “new” is not working. Any feedback will be great.
Here is my code
MOD EDIT – Codedump Removed
Please don’t just drop a bunch of code on us.
Make a Codepen.io example and post the saved link here.
However, from what I could see of your code (before i removed it) you had no element with that class in your HTML.
Hello Paulie,
I do have that element in my HTML and was not showing when I pasted it.
Here is the link:
http://codepen.io/anon/pen/kpFlc
Doesn’t looks like the codepen url worked…
If you do have an element with the class the style you are creating is probably being overridden by another style that’s more specific.
Try adding !important; to see if you can see your style. If you do remove the important and workout what’s causing the specificity issue.
HTH