Solid or dashed white pavement markings indicate that traffic is moving in opposite directions.

White lines are used to separate lanes of traffic moving in the same direction. Yellow lines are used to separate lanes of traffic moving in opposite directions.
DMV Writen Test