Petrol pumps are calibrated by volume, so fill up at night when it�s cold and you get a miniscule bit extra. This is also a reason not to overfill the car after the nozzle clunks, as any excess may go out of the overflow and be wasted.
No, there is a certain amount of energy in 1 kg of petrol. Depending on the temperature this 1 kg will take up more or less space. So you can fit a greater mass of petrol in the tank when it's cold.