Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to make such an angle in CSS or vue

injection:
injection

If there is some property in the CSS to create such an angle as in the layout

The program itself does not specify this property in the tab
I tried to search there
!:
!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can simply use clip-path css property, and here is an example:

.square{
  clip-path: polygon(80% 0%, 100% 20%, 100% 80%, 0% 80%, 0 0);
  
  background-color:dodgerblue;
  width:200px;
  height:200px;
}
<div class="square"></div>

clip-path: polygon(80% 0%, 100% 20%, 100% 80%, 0% 80%, 0 0);

for more info about this property MDN clip-path

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading