View Full Version : Aligning a table background to the bottom of the cell with norepeat

12-30-2002, 05:20 AM
I would like to have a single image appear behind text at the very bottom of the text. The text itself is in a table cell and I have been attempting to align the background to the baseline with norepeat, but I can't figure out how. The length of the text will vary so relying on resizeing the image with padding is out of the question. Any better methods to achieve the same goal will be openly welcomed.

Ideally, this could be cross-browser, but not totally necessary. If needed I can just make the image hidden in non-compatible browsers.

12-30-2002, 10:42 AM
The following styles applied to the table cell in question should lead to the desired effect:

td {background-image: url(theimage.jpg);
background-repeat: no-repeat;
background-position: bottom center;
All properties used here are in the CSS 1 recommendation, but it is reported that some older browsers (mainly NN 4.x) don't support the background-position property.

01-03-2003, 11:17 PM
Works Excellent! Thanks!