I can’t seem a way to get these to rows closer together. Is there a way to have very little space so the look would be almost like AB is stacked just above CDE?
IF {border-collapse:collapse} is applied; THEN {border-spacing:...} has no effect.
IF {border-collapse:collapse} is NOT applied; THEN {border-spacing:0 1} will increase the vertical space between the rows (which is not what you wanted)…
Try it yourself:
Comment out {border-collapse:collapse} in the following working page to compare the effects. Then just for fun, swap the border-spacing digits and see what happens.
Then restore {border-collapse} and comment out {border-spacing} to compare the effects.
You can add vertical-align back in again and see that it has no visible effect on the content shown. It does not affect the space between rows. The height of the content in one row of two or more cells would need to be different for vertical-align to have a visible effect in that row.
Yes, and it worked fine. However, if I put that in a server sent html email it doesn’t work. None of the letter show. If I leave that code line out, the letter shows but the spacing is off.
If the problem continues, please post a “working page” with the complete code from an e-mail message. HTML e-mails and web pages are continents apart. HTML e-mail should have been mentioned in your first post.
Did you try the working page that I posted? If not, Please copy that code to a file and open it in your browser. See what it looks like. Then send it as an e-mail and see how it looks in your e-mail reader. Send a screen shot if possible.
If you have other code in your e-mail other than the code that you have shown us, all bets are off. You MUST show all of your code so we can see the full context of the code.
To the best of my knowledge, this uses e-mail friendly HTML and inline CSS.
I decided to forward the email to my Samsung cell phone and the codes from prior emails work fine. On my local machine, windows pc, ms outlook it doesn’t work for the line height. That is the first time there has been a difference between the 2 over the years of sending emails.
I was just reading through that mailchimp reference too.
I’ve also seen that most people use a transitional doctype as well, gotta keep the code in the 90’s.
Oh that doesn’t surprise me at all, I suspect that might be the equivalent of IE3
I use Thunderbird, but I don’t accept html emails.
I was actually using the <br> tag before I posted the code. The display block on span should have eliminated the need for it. But your right the <br> should work without needing any styles.
Perhaps if the span had inline styles on it then it might work then too.