jeffmatthews
11-13-2009, 12:24 AM
I have a <td> set to overflow:scroll. Within it, I have an image and some divs and spans.
I float the img left and let the others format around it.
The overflow:scroll does not work, and instead overflow is expanding the height of the <td>. I have the height of the <td> to 150px.
I will be having the number of spans vary within this <td>, and therefore, need it to scroll when the number of spans is higher.
Anyone have experience with this issue?
// returns html string to use for replacing innerhtml of the <td>. The <td> has class with style having overflow:scroll.
retVal='<div>'+stateName+'</div>';
retVal+='<div style="height:60px; width:98px; float:left"><img src="'+getFlagHref(stateAbbrev)+'" class="stateFlag"/></div>';
retVal+='<span class="stateWriteUp">'+getStateWriteUp(stateAbbrev)+'</span>';
return retVal;
I float the img left and let the others format around it.
The overflow:scroll does not work, and instead overflow is expanding the height of the <td>. I have the height of the <td> to 150px.
I will be having the number of spans vary within this <td>, and therefore, need it to scroll when the number of spans is higher.
Anyone have experience with this issue?
// returns html string to use for replacing innerhtml of the <td>. The <td> has class with style having overflow:scroll.
retVal='<div>'+stateName+'</div>';
retVal+='<div style="height:60px; width:98px; float:left"><img src="'+getFlagHref(stateAbbrev)+'" class="stateFlag"/></div>';
retVal+='<span class="stateWriteUp">'+getStateWriteUp(stateAbbrev)+'</span>';
return retVal;