kastellu Posted April 16, 2006 Share Posted April 16, 2006 Hello,I have created an DB with some news, since i am reading this new from DB on a form <td>news</td> i have problem of setting the <td> to size of a row to only for 30 caraters and after that the <td> would colapse in to new row and so on. So what i am trying to do is that the <td> would be set to right leng for every row of a news. When i get the new on a form is always written out of the size i would like and the structure of the whole page is destroyed. So what to do? Please help me.Example:<!--First news--><tr> <td valign="top" class="text_1" style="width: 70px; height: 51px" colspan="0"><span class="text_2"><%=rs("date")%>-<%=rs("name")%></span><br><%=rs("description")%></td></tr> <!--line--><tr><td height="14" valign="top" style="width: 543px"><img src="slike/4ozadje.gif" height="1" style="width: 184px"></td></tr><!--Second news--><tr width="70px"> <td height="51" valign="top" class="text_1" style="width: 70px" colspan="0"><span class="text_2" ><%=rs("date")%>-<%=rs("name")%></span><br><%=rs("description")%></td></tr>thank you Link to comment Share on other sites More sharing options...
aspnetguy Posted April 17, 2006 Share Posted April 17, 2006 you need to use a while or for loop to go through the records and create the columsn and rows inside the loop. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now