i have a table with two TD tags. in the first, i place an image. In the second, i place a "comment"-box. Its a div-box.
The problem is, that i want to have this div-box exactly to the right of the image in the second td-tag. And it shouldn't be higher than the image. So if the content gets too much in the div, there should be a scrollbar.
Soo far, i have this:
css-code:
#picKom {
position:absolute;
width: 350px;
height: 100%;
float: left;
top: 0px;
right: 0px;
bottom:0px;
overflow-y: auto;
overflow-x: hidden;
color: #ffffff;
border: solid 1px #000000;
}
and this:
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"".$newWidth."px\" bgcolor=\"".$colorTwo."\">
<tr valign=\"top\">
<td>
<a href=\"images/Gallerie/".$bild_name."\" target=\"_blank\"><img src=\"images/Gallerie/".$bild_name."\" width=\"".$width."\"></a>
</td>
<td>
<div style=\"position:relative; height:100%;\">
<div id=\"picKom\">
MYCOMMENTBOX
</div>
</div>
</td>
</tr>
</table>
In Google-Chrome it works very well. But in Firefox, the comment-box is NOT in the right place. Its not in the td-tag. It is placed on the right of the window.
screenshot: http://www.pic-upload.de/view-21307692/google-chrome.png.html
Thank you guys.