StackOverflow - Spiderweb hrs

http://stackoverflow.com/questions/28589920/create-a-spiders-web-under-a-hr-element-in-css/28590558#28590558

by Joe Young

HTML

<div>
    <p>Some content</p>
    <hr>
    <p>Some more content!</p>
</div>

CSS

.hrSpiderWeb {         /* Targeting the image*/
    height: 75px;      /* Giving it a height */
    margin-top: -2px;  /* No gap between the img and the line */
    margin-left: -5px; /* Clean up/align the left hand side of it */
}
hr {  /* All hr elements */
    margin-bottom: -2px;  /* Further alignment */
    
    /*Styling the <hr> - optional */
    height: 1px;
    color: black;
    background-color: black;
    border: 0;
}

JavaScript

$(document).ready(function() {
    $("hr").after("<img src='http://www.repeatimpressions.com/images/2305.gif' class='hrSpiderWeb'>")
    //For every <hr> element, jQuery will add the spider web image after it
});