- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’ve been struggling getting a table to behave for an html email (which will end up with inline css). I’d like one table above the footer to be centered and stretch 466px wide, but it keeps pushing further out. I appreciate any help.
Here’s a live example: http://www.lookoutcreative.com/OEC/fork/
And here’s the code for this section:
|
|
Also here’s what I’d like it look like:
[img]http://www.lookoutcreative.com/OEC/fork/images/box.jpg[/img]
You have the background color applied to the <td> BEFORE the <table>, that’s why it doesn’t appear to be getting any smaller.
You need to have the background property of "sub-content" apply to the TABLE, not the <td> before it. So, remove the background property from "sub-content" and paste it into the <table>:
<table width="466" style="background: #855525;" cellpadding="0" border="0" align="center">
Perfect, thanks for your help!