why css borders not shown carefully?

74 views Asked by At

i coded a arrow with css. the code

border-style: solid;
border-width: 0 0 25px 4px ;
border-color: transparent transparent transparent #cacaca;

The shot :

enter image description here ایگل دیزاین طراحی سایت

the slash line is not a smooth line.

whats your idea ?

2

There are 2 answers

0
user3766844 On

Not sure why it would not be smooth, could be that you may need to specify the borders long hand.

e.g. border-top: 20px solid transparent

css tricks has a good article on css triangles

0
Vaibs_Cool On

Try this

border-top: 25px solid $pink;
border-right: 50px inset transparent;
border-left: 50px inset transparent;

FIDDLE DEMO