How do you horizontally distribute 3 divs with the least amount of code?
I have 3 divs that have the same class, and I need to distribute them horizontally, with 19 pixels of space between each div.
My solution for now is to give the first two divs the right edge at 19 pixels and assign a separate class to the third div, which gives it the left edge at 19 pixels.
This does its job, but I feel that there may be a better way to do this. Ideally, all 3 divs will still have the same class.
source share