How to Get a Straight Line on a Keyboard

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Certain combinations of keys can be used to create various symbols and images.

Using a computer keyboard to create effects, pictures and designs with symbols has become common since the rise of email and instant messaging. The ability to create entire images using only the keyboard fascinates many, but some symbols are not regularly used and can be difficult to find. One important part of the creation of these images is the ability to create a straight line with the keyboard.


Step 1

Press and hold the "Shift" key, then press and hold the hyphen "-" key, located two keys to the left of "Backspace" on a PC or "Delete" on a Mac. This creates a solid, horizontal straight line. Release the hyphen key to stop the line.

Video of the Day

Step 2

Press the "-" key repeatedly to create a straight, dotted horizontal line.


Step 3

Press and hold the "Shift" key, then press the "" key, located above "Enter" or "Return," to create a straight vertical line.


Step 4

Press the "=" key, located one key to the left of "Backspace" on a PC or "Delete" on a Mac, repeatedly to create a dotted double horizontal line.



Report an Issue

screenshot of the current page

Screenshot loading...