Solved

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

Posted on 2008-10-08
4
191 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…

762 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

24 Experts available now in Live!

Get 1:1 Help Now