17

I want to remove the background from the last figure element:

@media (min-width: 50em) {
  #mission #press figure {
    padding-left: 0;
    background: url('/assets/img/splash-green.png?1345829368') no-repeat 50% bottom;
  }
  #mission #press figure:last-child {
    background: none;
  }
}

The background still shows up. Am I mis-targeting?

cimmanon
  • 67,211
  • 17
  • 165
  • 171
Yahreen
  • 1,639
  • 7
  • 24
  • 38

1 Answers1

18

I think you might actually be looking for the functionality of last-of-type instead of last-child.

LINK

SciSpear
  • 2,008
  • 18
  • 18
  • Hi, thanks for that link, if you have a moment could you take a look at my question here? http://stackoverflow.com/questions/16905061/last-child-and-last-of-type-not-working-in-sass Not sure where I'm going wrong with converting that CSS into SASS compliant code – Leon Gaban Jun 03 '13 at 20:17