I need to make a <div>
that has two borders ( top
and bottom
), is it possible to do this with CSS? Or just with an image?
I'vealreadybeenabletodothis:
div
{
width:500px;
height:500px;
position: relative;
z-index : 1;
}
div:before {
content : "";
position: absolute;
left : 25%;
bottom : 0;
height : 1px;
width : 50%;
border-bottom:1px solid magenta;
}
div:after {
content : "";
position: absolute;
right : 0;
bottom : 25%;
height : 50%;
width : 1px;
border-right:1px solid magenta;
}
<div>Item 1</div>