Help - Search - Members - Calendar
Full Version: Trying to adjust background color of a table with padding - running into issues
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
eastbound82
I'm developing an html template for Exact Target, the email marketing system.

I'm trying to adjust one of the content areas so the entire table has a grey background: #E8E8E8

Here is the code. I've tried adding background color="#E8E8E8" or bgcolor="#E8E8E8" but could only get it to render the background color within the row, not across the entire table. Can someone help a newbie figure out the appropriate code and placement?

------------------


<table width="100%" style="border: 1px solid #cccccc;font: 16px arial;font-weight: normal;color: #333333;padding: 14px;margin: 0;margin-top: 12px;line-height: 20px;text-align: left;">
<tr><td>


<!-- MAKE YOUR EDITS BELOW -->


<h2 style="font: 18px georgia;font-weight: bold;margin: 0;padding: 0;margin-bottom: 8px;">

Custom Header

</h2>
This is a basic paragraph. If you want to include a link, <a href="http://AddCustomURL.com" style="color: #00a2dc; font-weight: normal; font-style: italic; text-decoration: none;">be sure to copy and paste the link style from this link</a> to maintain the custom link color. Here is more paragraph text to give you an idea of the way this will look.


<!-- MAKE YOUR EDITS ABOVE -->

</td></tr>
</table>
pandy
So where did you use it? In the CSS? If so it's background-color or background. If in the HTML it's bgcolor.

http://htmlhelp.com/reference/css/color-ba...ound-color.html
http://htmlhelp.com/reference/css/color-ba...background.html
http://htmlhelp.com/reference/html40/tables/table.html

I don't understand though when you say it only colors the row. There's just one row, one cell. What more should it color?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.