Solved

very easy table question..

Posted on 2000-04-09
4
210 Views
Last Modified: 2010-04-09
I've got a table on my site, which looks like this :

<HTML>
<body>
<form action="../cgi-bin/testprc.cgi" method="post">
<table cellspacing=0 border=0 cellpadding=1 width=600>
<TR><TD Width=\"25%\" VALIGN=\"TOP\">
<P>Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male..</TD>
<TD width=\"3%\" valign=\"top\">
<p>:</td>
<TD width=\"*\" valign=\"top\">
<BR>
<INPUT TYPE="radio" NAME=$veld2>female
<INPUT TYPE="radio" NAME=$veld2>male
</TR>
</table>
<BR><input type=submit value="Proceed" name=prctest>
</form>
</body>
</html>

It look just the way I want it, except that the ':' should be at the second line (the large sentence breaks up in two). If I test it the way it is wright now it looks like this...

Hello, this the most interesting test I've ever seen in my live. First tell me if you are : female or male..

instead of...
Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male.. :

Can anyone tell me how to change the script so that the ':' character will be placed at the right spot ? Note, I do prefer to use a table...
 

 
0
Comment
Question by:saskia
4 Comments
 
LVL 3

Expert Comment

by:fibdev
ID: 2698711
Is this what you want?

<HTML>
<body>
<form action="../cgi-bin/testprc.cgi" method="post">
<table cellspacing=0 border=0 cellpadding=1 width=600>
<TR><TD Width=\"25%\" VALIGN=\"TOP\">
<P>Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male..</TD>
<TD width=\"3%\" valign="center">
<p>:</td>
<TD width=\"*\" valign=\"top\">
<BR>
<INPUT TYPE="radio" NAME=$veld2>female
<INPUT TYPE="radio" NAME=$veld2>male
</TR>
</table>
<BR><input type=submit value="Proceed" name=prctest>
</form>
</body>
</html>


Or like this?  ( I like this one better )

<HTML>
<body>
<form action="../cgi-bin/testprc.cgi" method="post">
<table cellspacing=0 border=0 cellpadding=1 width=600>
<TR><TD Width="60%" VALIGN=\"TOP\">
<P>Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male..</TD>
<TD width=\"3%\" valign="bottom">
<p>:</td>
<TD width=\"*\" valign=\"top\">
<BR>
<INPUT TYPE="radio" NAME=$veld2>female
<INPUT TYPE="radio" NAME=$veld2>male
</TR>
</table>
<BR><input type=submit value="Proceed" name=prctest>
</form>
</body>
</html>
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 2699363
You could use nowrap, or you could valign to the bottom.
0
 
LVL 1

Expert Comment

by:hkmdj
ID: 2699851
My suggestion, cut and paste this ---

<HTML>
<body>
<form action="../cgi-bin/testprc.cgi" method="post">
<table cellspacing=0 border=0 cellpadding=1 width=600>
<TR><TD Width=\"35%\" VALIGN=\"TOP\" colspan=\"2\">
<P>Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male.. :</TD>
<TD width=\"*\" valign=\"top\">
<BR>
<INPUT TYPE="radio" NAME=$veld2>female
<INPUT TYPE="radio" NAME=$veld2>male
</TR>
</table>
<BR><input type=submit value="Proceed" name=prctest>
</form>
</body>
</html>

I added the colspan because I am guessing that you have a reason for needing 3 columns. If you don't this should work well on it's own.
0
 
LVL 1

Accepted Solution

by:
kalleanka earned 30 total points
ID: 2700600
<HTML>
<body>
<form action="../cgi-bin/testprc.cgi" method="post">
<table cellspacing=0 border=0 cellpadding=1 width=600>
<TR><TD Width=\"25%\" VALIGN=\"TOP\">
<P>Hello, this the most interesting test I've ever seen in my live. First tell me if you are female or male..</TD>
<TD width=\"3%\" valign=\"top\">
<BR>:</td>
<TD width=\"*\" valign=\"top\">
<BR>
<INPUT TYPE="radio" NAME=$veld2>female
<INPUT TYPE="radio" NAME=$veld2>male
</TR>
</table>
<BR><input type=submit value="Proceed" name=prctest>
</form>
</body>
</html>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rearranging, beautifying pure CSS read more script 5 40
HTML File in SharePoint 2013 Library 4 46
How can I   ajax html table  rows? 20 60
.php tree directory? 5 54
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

947 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now