A black line on your computer screen is usually caused by a loose cable, dead pixels, or a faulty display panel. To fix it, try restarting your computer, checking or reconnecting the display cable, updating your graphics drivers, or testing the monitor with another device. If the line stays, the screen may be damaged and might need professional repair or replacement.