Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

problem with table and ASP

I show a list of people in a table with an ASP page. Now If the name van the person is "Van Damme" the name is shown in to lines (in the same cell) like this:
Van
Damme
And everwher there's a space in a field, the field is spread over multiple line's. What's wrong?
Underneath you can find my code (I think this is only the usefull part)

<%Conn.Open "IntraPersoneel"%>
<%Set RS = Conn.Execute("SELECT Naam,Voornaam,Lokaal,InternTel FROM personen ORDER BY personen.naam")
%>

<table border="0" width="90%">
    <tr>
        <td width="40" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Naam</b></font></td>
        <td width="30" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Voornaam</b></font></td>
        <td width="17" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Lokaal</b></font></td>
        <td width="13" bgcolor="#000080"><font color="#FFFFFF"
        face="Optimum"><b>Tel.Nr.</b></font></td>
    </tr>
   <% Do While Not RS.EOF %>
    <tr>
        <td width="40" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Naam")%></font></td>
        <td width="30" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Voornaam")%></font></td>
        <td width="17" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("Lokaal")%></font></td>
        <td width="13" bgcolor="#DDDDFF"><font face="Optimum"><%=RS("InternTel")%></font></td>
    </tr>
    <font face="Optimum"><%RS.MoveNext
Loop
RS.Close
Conn.Close
%></font>
</table>
0
item
Asked:
item
1 Solution
 
OttaCommented:
In each <TD> entry,
specify the WIDTH= as a percentage.
Sometimes, your text is "too wide",
so it is automatically "flowed" to
the next "row" inside the cell.

Or, on the <TABLE> entry,
specify the WIDTH= in "absolute" units,
i.e., at least the sum of the widths
of your cells.
0
 
itemAuthor Commented:
Thanx, I 've seen it also, But I got always a server time wen I wanted to delete the question. Altough, I give you the points!


0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now