Forums

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

Home Forums CSS Crazy class selectors and css

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #40362
    forgetfulvet
    Member

    I am having some troubles.. I have been working out a way to create a 3×2 box with these icons in it.. Here is the fiddle : http://jsfiddle.net/M9APC/ I need some serious help.. Been going around in circles.

    #112236
    JoniGiuro
    Participant

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

    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.

    http://jsfiddle.net/M9APC/1/

    #112232
    Paulie_D
    Member

    I’m also confused why you are putting the image in your HTML with no source and then putting it in the background.

    Also, you have a ‘ul’ with no ‘li’s.

    I assume you were going for something like this..http://codepen.io/anon/pen/jktqc

    #112203
    forgetfulvet
    Member

    we have a winner.. Thanks guys.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.