?
Solved

Radio buttons inside table cell

Posted on 2004-10-08
14
Medium Priority
?
148 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

762 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