huzefaq
asked on
how to make the text go all around the image
Hi
I have a table which is divided by <td> . The first table data contains text and othe other table data contains image
now what I need is that if the text exceeds the image width it covers both the table data. The mage is of a fixed width.
Any help will be greatly appreciated
here's the code
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
<tr>
<td height="100" >
<table width="508">
<% while(sponsor_iterator.has Next()){
ChapterSponsor chapter_sponsor = (ChapterSponsor)sponsor_it erator.nex t();
%>
<tr>
<td>
<b> Company: </b><%= chapter_sponsor.getSponsor _name() %><br><br>
<b> Contact Information</b><br><br>
<b> First Name: </b><%= chapter_sponsor.getContact _firstName () %> <br>
<b> Last Name: </b><%= chapter_sponsor.getContact _lastName( ) %> <br>
<b> Phone: </b><%= chapter_sponsor.getContact _phone() %> <br>
<b> Email: </b><%= chapter_sponsor.getContact _email() %> <br>
<b> Website: </b><%= chapter_sponsor.getImage_l ink() %> <br>
<b> Ad copy: </b><%= chapter_sponsor.getDescrip tion() %> <br>
<p>
<hr width = "200" align ="left">
</td>
<td>
<a href ="<%= chapter_sponsor.getImage_l ink() %>" ><img src="attachments/sponsors/ <%=chapter _ID%><%=ch apter_spon sor.getSpo nsor_ID()% >" width="200" height="100"></a>
</td>
</tr>
<p><p>
<% } %>
</table>
</td>
</tr>
I have a table which is divided by <td> . The first table data contains text and othe other table data contains image
now what I need is that if the text exceeds the image width it covers both the table data. The mage is of a fixed width.
Any help will be greatly appreciated
here's the code
--------------------------
<tr>
<td height="100" >
<table width="508">
<% while(sponsor_iterator.has
ChapterSponsor chapter_sponsor = (ChapterSponsor)sponsor_it
%>
<tr>
<td>
<b> Company: </b><%= chapter_sponsor.getSponsor
<b> Contact Information</b><br><br>
<b> First Name: </b><%= chapter_sponsor.getContact
<b> Last Name: </b><%= chapter_sponsor.getContact
<b> Phone: </b><%= chapter_sponsor.getContact
<b> Email: </b><%= chapter_sponsor.getContact
<b> Website: </b><%= chapter_sponsor.getImage_l
<b> Ad copy: </b><%= chapter_sponsor.getDescrip
<p>
<hr width = "200" align ="left">
</td>
<td>
<a href ="<%= chapter_sponsor.getImage_l
</td>
</tr>
<p><p>
<% } %>
</table>
</td>
</tr>
ASKER
I actually have to make the table width fixed. is there any other way.
Thanks for yor help
Thanks for yor help
okay try noWrap as true...
<td noWrap=true>
<b> Company: </b><%= chapter_sponsor.getSponsor _name() %><br><br>
<b> Contact Information</b><br><br>
<b> First Name: </b><%= chapter_sponsor.getContact _firstName () %> <br>
<b> Last Name: </b><%= chapter_sponsor.getContact _lastName( ) %> <br>
<b> Phone: </b><%= chapter_sponsor.getContact _phone() %> <br>
<b> Email: </b><%= chapter_sponsor.getContact _email() %> <br>
...
...
...
...
<td noWrap=true>
<b> Company: </b><%= chapter_sponsor.getSponsor
<b> Contact Information</b><br><br>
<b> First Name: </b><%= chapter_sponsor.getContact
<b> Last Name: </b><%= chapter_sponsor.getContact
<b> Phone: </b><%= chapter_sponsor.getContact
<b> Email: </b><%= chapter_sponsor.getContact
...
...
...
...
ASKER
kuldeepchatruvedi I tried putting nowrap bt it just exteds the rows to fill the whole screen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try having the table <table width="100%"> & see if that fixes your problem