This code provides some spacing between columns, but table cells still don't inherit the styles from the <style> tag, and I'm not sure why.

I've commented the code pretty extensively with explanations of what I
think is happening.