Why it happens
Cool water offshore chills the air just above it, and a layer of warmer air above traps that cool, moist air against the coast. The result is a shallow stratus deck a few hundred to a couple thousand feet thick. Daytime heating usually erodes it from the inland edge outward, which is why the burn-off moves from east to west through the morning.