I\'m trying to \"automatically\" add a horizontal-rule after each article in my page. Is there a way of doing this using the :after selector? I\'m hoping to be able to style it
CSS only solution
article { position: relative; } article:after { content: ''; position: absolute; width: 100%; height: 1px; // suit your need background: black; // suit your need top: 100%; left: 0; }