css sibling combinator q?

Out of context: Reply #2

  • Started
  • Last post
  • 4 Responses
  • airey0

    that was simply an example.

    i've got a selector for small images inside a wrapping div. i want a 15px gap beneath the first small image but not beneath the 2nd so i'm using a code similar to:

    .smallImageContainer .smallImage {
    background-color: #FFFFFF;
    padding: 0px;
    float: left;
    height: 60px;
    width: 72px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 15px;
    margin-left: 0px;
    }
    .smallImageContainer .smallImage + .smallImage {
    margin-bottom: 0px;

    this works in safari + firefox on mac but am working through a bit more before flicking over to XP and trilaing it there. just looking for info from anyone with actual experience.

    • nope. it 'aint working on xp IE 6.0.9x. dangairey

View thread