Drive at a speed that will allow you to stop well within the distance you can see to be clear.
You should leave enough space between you and the vehicle in front so that you can pull up safely if it suddenly slows down or stops. The safe rule is never to get closer than the overall stopping distance.
This clip shows you how to make sure you are driving at the correct separation distance.
The complete resource for all your FREE Learner Driver information