According the Rules of the Road you are permitted to cross a solid yellow line when . . .
making a U turn on the highway
turning into a driveway if it is safe to do so
passing on the highway
getting a better view of the road ahead