Usually electric guitars are recorded with a dynamic microphone, with it being right in front of the amplifier. Experiment with the distance between the microphone and the amp and see what you like the most.
Condenser microphones are usually used for acoustic guitars. There is a little bit more creativity when it comes to acoustic guitars. The diagram below shows how the sound will change depending on the location of the microphone. The most important part here is to not put the microphone too close.
Condenser microphones can be used (for all types of guitars) and placed further back from the source to pick up the reverb that is created by the room.
If you have two amplifiers, or an amplifier with more than one speaker, you can record each speaker with a 2 different microphones (make sure they are the same model) on 2 different channels. After that you can pan one far left, and the other far right, this will create a strong stereo effect.