Solved

How to float an image aligned with the bottom of a varying height table?

Posted on 2008-10-08
4
193 Views
Last Modified: 2012-05-07
I have a web page where the content is displayed in a table. The content will vary so the height of the table may vary. The customer wants an image to be floated behind the table, which I figured out, but they want the bottom of the image aligned with the bottom of the table.

Here's what I have:
<Table style="z-index:2; position:absolute; left: 0px; top: 0px;">
      table content here
</table>
<IMG src=source url style="vertical-align:bottom; z-index:1; position:absolute; left: 0px; top: 0px;">
This doesn't work.

I assume I need to do something with FLOAT but I'm not a CSS guy so I could be way off.

Any help would be greatly appreciated.
0
Comment
Question by:rschaeferhig
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:sayguh
ID: 22669800
How about this?

<Table>
<tr><td style="background-image:url(images/blah.jpg); background: no-repeat bottom center;">
 table content here
</td></tr>
</table>

0
 

Author Comment

by:rschaeferhig
ID: 22670283
We're trying to eliminate background images in favor of IMG tags. The HTML is used as the body of an email and we want all the images embedded in the email, not linked to the web server. I'm not sure you can specify a CID as the source for a TD Background, and even if you can CreateMHTMLBody isn't smart enough to find Background images.
 
0
 
LVL 2

Expert Comment

by:sayguh
ID: 22670607
Ahh - I don't think you will be able do it that way if the size of the table is going to vary.
0
 

Accepted Solution

by:
rschaeferhig earned 0 total points
ID: 23819236
Apparenlty this is not possible.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now