Log in

View Full Version : placing image over a horizontal rule



rizlaa
10-23-2006, 02:10 PM
I have a table with a several rows. I am trying to put a horizontal rule (HR) acroos the middle of the row 100% width and then place a transparent image over the top of it.

I have the following example code:

<tr><td colspan="6"><hr color="black" width="100%" align="left"><img style="position:relative; top:0px; left0px; z-index:1" align="left" src="image.gif"></td></tr>

This does nearly what i want but the HR rule is not vertically in the middle of the row. It seems as if the image is being displayed below the HR rather than over it, thereby pushing the HR upwards from the middle

any help would be much appreciated....