0
If the only stylized edge so is left, you can work with the pseudo-elements :before
and :after
, styling both its edges and its body. See an example where I created the thinnest edge with the element before
and the small grey segment with the element after
:
.border {
width: 300px;
border-top: 3px solid #1E90FF;
border-left: 3px solid #1E90FF;
position: relative;
background: white;
padding: 20px;
font-family: monospace
}
.border:before {
content: " ";
position: absolute;
width: 2px;
height: calc(100% - 80px);
left: -3px;
bottom: 0;
border-left: 1px solid #CCCCCC;
background: white;
}
.border:after {
content: " ";
position: absolute;
width: 2px;
height: 30px;
left: -2px;
top: 100px;
background: #CCCCCC;
}
<div class="border">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse ornare, mi posuere suscipit malesuada, est ante tempor augue, quis porttitor lectus mauris ac diam. Morbi sed tortor justo. Etiam maximus orci magna, quis tristique dolor tempor id.
</div>
The right and bottom edge is transparent?
– MagicHat
I didn’t understand your question, but take a look here
– Marconi
@Magichat Is yes.
– Gladison