- What is the reason behind the block level element box appearing after the blue container's content instead of directly after the content box itself?
- Is it possible to achieve this using the CSS :after selector?
CSS
div{
background:#59c;
box-sizing: border-box;
height: 100px;
width: 100%;
position: relative;
}
div:after{
background:#b55;
content: "I SHOULD BE AFTER CONTENT BOX";
width: 100%;
display:block;
}