-3

I want is to have something like this effect.

enter image description here

I tried to make a css template by following the picture above, but I don't know how to do it?

Do you can make css effect according to the above picture?

Community
  • 1
  • 1
wen tian
  • 433
  • 2
  • 5
  • 18

1 Answers1

0

You can use 2D Transformation (https://www.w3schools.com/css/css3_2dtransforms.asp).

.line1 {
width: 112px;
height: 47px;
border-bottom: 1px solid red;
-webkit-transform:
    translateY(-20px)
    translateX(5px)
    rotate(27deg); 
position: absolute; }

Here is an example in JSFiddle

davidh
  • 49
  • 4
  • The problem with this is it's for webkit only browsers which leaves out everything but Safari and Chrome. Even then, neither of those browsers have needed webkit prefixes for this in years! This is an antiquated answer. – Rob Jul 05 '18 at 14:01