The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Crazy class selectors and css Re: Crazy class selectors and css


Note that this “background-image: url(“../images/facebook.png”); ” won’t work on jsfiddle. You need to reference an image on your server (

anyway, you had “img .twitter-icon” but the class twitter-icon is the class for that image, it’s not its child, so you should use img.twitter-icon (no space before the dot).

There were some typos in your code (pintrest, twitter-ico -> pinterest, twitter-icon).

You can’t use @include on jsfiddle (I think it doesn’t allow preprocessors like codepen does [I’m not sure]).

I changed img in span because we don’t have the icons, but it should work just the same way.