Forums

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

Home Forums CSS SCSS nesting issues.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40658
    revolutiong
    Participant

    For some reason or another I can nest this code no matter what variation I try. New to SCSS am sure its something simple.

    .social-list li.facebook a {
    background-position: -29px 0;}

    Trying to nest in code below.

    .social-list {
    list-style-type: none;
    li {
    float: left;
    a {
    background-color: transparent;
    background-image: url(http://www.rgfx.net/del/social.png);
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 29px;
    height: 28px;
    display: block;
    }
    }
    }

    Thanks

    #113537
    revolutiong
    Participant

    Here my codepen to my attempt to use sprites for social networking icons http://codepen.io/rgfx/pen/zkjDd

    #113542
    revolutiong
    Participant

    Thanks, I went a looked up with & does. Serves me right for jumping in and not learning some of basic first :)

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