Muscular tension: tight muscles, a stiff neck. Caused by: sitting at a desk starring at a computer for long periods of time. Faulty posture. A stiff neck could have developed by sleeping with your hand under your head, causing the neck muscles to spasm during the night while you sleep.