I show box-shadow with this CSS code.
img {
box-shadow: 2px 2px 1px #888;
}

I’d like to hide the boarder conditionally, and I tried to add “noboarder” class in img tag,
<img ... class="noborder">
#noborder
{
box-shadow: 0px 0px 0px #888;
}
However, I still have the shadow with the `class=”noborder”>code, what might be wrong?
try replacing
#noborderwith.noborder, you want it to be a class, not an ID.Additionally,
box-shadow: noneis a neater alternative to remove the box shadow