Solved

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

Posted on 2008-10-08
4
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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 …

688 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