Answer the question
In order to leave comments, you need to log in
There is a block with a photo and a border, how to add such rounded corners using after and before?
There is a block with a photo and a border added with before
, here is the code
.test{
width:500px;
height:400px;
border-left:15px solid red;
border-right: 15px solid red;
position:relative;
border-radius: 4px
}
.test:before{
position:absolute;
display:inline-block;
width:90%;
height:16px;
top:0;
left:0;
content:'';
background color: red
}
How to make such rounded corners as in the photo? Tell me please
Answer the question
In order to leave comments, you need to log in
On choice, with pseudo and absolute or without him.
https://jsfiddle.net/rchpmf0y/
https://jsfiddle.net/ude1w987/ Better
yet , grids : https://jsfiddle.net/4smtphxz/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question