Solved

problem with table and ASP

Posted on 1998-01-21
2
225 Views
Last Modified: 2013-12-25
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
Comment
Question by:item
2 Comments
 
LVL 12

Accepted Solution

by:
Otta earned 100 total points
ID: 1856556
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
 
LVL 1

Author Comment

by:item
ID: 1856557
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question