Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Radio buttons inside table cell

Posted on 2004-10-08
14
Medium Priority
?
149 Views
Last Modified: 2010-04-09
I have a 1x1 table and I ned to have two radio buttons next to each other; male, female. I can't figure out how to get the second one. Also, is there away to get tables  to grow vertical?

Thanks much
0
Comment
Question by:6784
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 53

Accepted Solution

by:
Ryan Chong earned 400 total points
ID: 12261090
something like:

<form name="form1" method="post" action="">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td> <input type="radio" name="gender" value="male">
        Male
        <input type="radio" name="gender" value="female">
        Female </td>
    </tr>
  </table>  
</form>

?
0
 
LVL 30

Expert Comment

by:VirusMinus
ID: 12261091
<table>
<tr>
    <td><input type="radio" name="sex" option value="1" checked>male</td><td><input type="radio" name="sex" option value="2">female</td>
</tr>
</table>

the table will grow vertically on its own if you put in more content and set a fixed height
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 12261095
<input type="radio" name="gender" value="male">
<input type="radio" name="gender" value="female">

To grow vertically, add content or use CSS to specify a fixed height.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12261107
What do you mean you can't figure out how to get the second one?

<form name="the_form" action="somepage.html" method="post">
<table><tr>
<td nowrap>
<input type="radio" name="sex" value="m">Male
<input type="radio" name="sex" value="f">Female<br>
</td>
</tr></table>
</form>
0
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12261110
Whoa.  I ride the short bus.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 12261162
Lose the table.

<fieldset>
      <legend>My Form</legend>
      <input type="radio"> Yes
      <input type="radio"> No
</fieldset>

Sean
0
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12261180
Sean always gets all css-world on us.

:)
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 12261311
Cool, let's rumble: http:Q_21077427.html#11685530
0
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12261446
LOL!!!!
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 12278809
@6784: EE policy is to accept the FIRST correct answer. ryancys was the first to post.  Please post in Community Support and ask a moderator to reopen this question so you can accept ryancys' answer.
0
 
LVL 13

Expert Comment

by:cLFlaVA
ID: 12278868
I wonder why I was the chosen one...
only diff. was the nowrap in there.
?
0
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 12278927
@6784: If the "nowrap" was the key to your problem, then cLFlaVA's post is the first answer and can stand as is.  Otherwise, ryancys probably deserves the points.
0
 

Author Comment

by:6784
ID: 12279030
Sorry, didn't mean to break EE policy. I will take care of this matter right away.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
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 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 …

604 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