I am having an issue placing a black background in an e-mail newsletter I am sending out. Using Joomla, I cant get the body tag to stick when adding the code. Therefore my e-mails have a black background on top of a white background which I assume is the body. I have the black background behind the text and content using a div, but line spaces, and breaks show up white... Any help on how to work around not being able to use the <body> tag?
Html in emails is tricky because a lot of email clients (web based or not) read it differently. Using a table for the layout (yeah, the old way) is the best way to obtain the same result whatever the email clients is.
Use a table for layout but also set a one outer most table as a container, this will act like your body tag. You must also style each and every element inline.
it's a pain in the butt but most email clients won't accept any kind of css, in the head or external.
So most container tables would be set <table height="100%" width="100%" style="height:100%; width:100%; background-color: white;" >
*Sidenote don't use shorthand CSS properties, ex use #FFFFFF not #FFF.
Background image is limited in Email. But, if you want to use email in body.
The best way is you create table and set background-image to table or cell.
I will dependent your email system you sent as: google, yahoo. ect ...