Currently, I am customizing a blog theme and I am aiming to add a subtle separation between each individual post using a thin line. The challenge lies in the fact that each post is centered and has a width of 800 pixels. As a result,
.post {
background: #fff;
margin: 40px auto;
width: 800px;
padding-bottom: 40px;
border-bottom: 1px solid grey;
}
This code snippet creates a neat border at the bottom of each post.
However, since the post <div>
is limited to 800 pixels in width, the border will also span 800 pixels and be centered underneath the post. I am seeking a solution to achieve a separator that spans the entire screen without adjusting the div's width to 100%
. Any suggestions?