[data-board] > .files > :nth-child(1):not(.multifile) > a:before { content: url('/static/partyhat.png'); float: left; display: block; margin-right: -160px; position: relative; top: -150px; left: -30px; } [data-board] > .files > :nth-child(1).multifile > a:before { content: url('/static/partyhat.png'); float: left; display: block; margin-right: -160px; position: relative; top: -150px; left: -50px; }