If you're new to soldering, check out the Adafruit Guide to Excellent Soldering.
Solder
Solder the pins with a soldering iron.To get the momentary and toggle boards to lie flat on the headers, solder a single pin. Reheat the solder on the pin and adjust the board until you are happy with its positioning.