Welcome Guest. Sign in or Signup

1 Comments

How to draw lines at an angle?

Asked by: 3013 views
Common

0
0

HTML doesn’t have a direct way to draw a line (unless you are inside a Canvas or SVG object), however you can use a div with a specific height and 0 width to get a vertical line (or vice versa for a horizontal line). Then apply a transform on the div-line to draw it at an angle.

1 Comments



  1. fishinglovers.net on Dec 18, 2014 Reply

    Thanks for sharing, this is a fantastic post.Thanks Again. Will read on…


Comments on Question