If the div has some content inside, this will be the best practice to have a line over or under the div and maintaining the content spacing with the div
.div_line_bottom{
border-bottom: 1px solid #ff0000;
padding-bottom:20px;
}
.div_line_top{
border-top: 1px solid #ff0000;
padding-top:20px;
}