.b-border{
display: inline-block;
position: relative;
border: solid #333;
border-width: 1px 1px 0px 1px;
padding: 20px;
margin-bottom: 100px;
}
.b-border.border-right{
border-width: 1px 0 1px 1px;
}
.b-border.border-right:after{
content: "";
position: absolute;
right: -30px;
border-top: 1px solid #333;
border-left: none medium;
top: -1px;
left: auto;
width: 30px;
height: 100%;
background: linear-gradient(to top left, white calc(50% - 1px), #000 1px, white 50%);
}
.b-border:after{
content: "";
position: absolute;
left: -1px;
bottom: -15%;
border-left: 1px solid #333;
height: 15%;
width: calc(100% + 1px);
background: linear-gradient(to right bottom, white calc(50% - 1px), #000 1px, white 50%);
}
<div class="b-border border-right">
Hello :)
</div>
<p></p>
<div class="b-border" style="width: 300px;">
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
Lorem ipsum dolor sit amet, consectetur
</div>
Code Example |
---|
Css :: chai assert |
Css :: rem in css |
Css :: media query in scss |
Css :: css max width substruction |
Css :: laravel 7 css loading slow |
Css :: css flex alle elemente gleiche höhe |
Css :: operador css contain attr |
Css :: How to replace broken image CSS? |
Css :: insert on positions CSS |
Css :: foreign key vs indexes |
Css :: image cut css |
Css :: advance selectors in css |
Css :: promise.resolve |
Css :: css slick js load slider jump |
Css :: how to add google fonts to css in react |
Css :: style checkmark css |
Css :: enable xdebug ddev |
Css :: css hover pointer |
Css :: html css drow line |
Css :: Background Animation onHover |
Css :: icon float right side input css |
Css :: select focus none |
Css :: use .map to count length of each element in an array |
Css :: CSS Border - Shorthand Property |
Css :: custom properties css |
Css :: gradient |
Css :: disable dequeue contact form7 |
Css :: gmail auto rewize dont |
Css :: vertical multi color border css |
Css :: -webkit-animation css |