Solved

very easy table question..

Posted on 2000-04-09
4
209 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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…

708 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

13 Experts available now in Live!

Get 1:1 Help Now