.caption::before { content: attr(data-title); top: 0; height: 25%; padding: 5px 30px 15px 10px; font-size: 40px; border-bottom: 1px solid rgba(0,0,0,0.1); }