Skip to content

Instantly share code, notes, and snippets.

@sergx
Created May 10, 2014 09:29
Show Gist options
  • Save sergx/9e8f26d55ee6695ffee3 to your computer and use it in GitHub Desktop.
Save sergx/9e8f26d55ee6695ffee3 to your computer and use it in GitHub Desktop.

Revisions

  1. sergx created this gist May 10, 2014.
    10 changes: 10 additions & 0 deletions jsbin.ruvulu.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    div div {
    border:1px solid #ccc;
    float: left;
    margin:15px;
    }
    p {border:1px solid; margin:50px; width:25px;height:25px; font-size:20px; line-height:25px; text-align:center;}

    div div:nth-last-child(3):nth-child(1) p, div div:nth-last-child(3):nth-child(1) ~ div p{
    border:2px solid red;
    }
    14 changes: 14 additions & 0 deletions jsbin.ruvulu.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>JS Bin</title>
    </head>
    <body>
    <div>
    <div><p></p></div>
    <div><p></p></div>
    <div><p></p></div>
    </div>
    </body>
    </html>