The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Trying to adjust background color of a table with padding - running into issues
eastbound82
post Jan 23 2014, 09:55 PM
Post #1





Group: Members
Posts: 1
Joined: 23-January 14
Member No.: 20,268



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>

This post has been edited by eastbound82: Jan 23 2014, 09:57 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 24 2014, 03:08 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 10:33 PM