2
I need to make a <div>
two-edged (top
and bottom
), is it possible to do this with CSS? Or just with image?
I’ve been able to do it like this:
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>
Want to do only with css? vc could create the edges and move their position
– N. Dias
can but give an example?
– Wagner Martins Bodyboard