A black line on a computer screen, whether horizontal or vertical, can be caused by various factors, including faulty display cables, a malfunctioning LCD panel, or a problem with the graphics card. To troubleshoot and potentially fix it, you can try restarting your computer, checking and adjusting display settings, updating or downgrading graphics drivers, and even performing a clean boot.