Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make three text buttons in one column and three radio buttons (all in one row) and seven check buttons (also all in one row) into another column.

What I have tried:

Here is my code

HTML
<table><tbody><tr>    <th colspan="2">User registration</th>  </tr>  <tr>    <td></td></tr><tr>				<td></td>				<td>Full name: <br>
					
				</td>			</tr>            <tr>                <td></td>                <td>Email: <br>
                    
                </td>            </tr><tr>				<td></td>				<td>City <br>
					
				</td>			</tr>	<tr><td>Ride in group? <br>
                    Always
                    
                    Sometimes
                    
					Never
                    
					
                </td>          </tr><tr><td>Days of the week <br>
                    Sun
                    
                    Mon
                    
					Tue
                    
					Wen
                    
					Thu
                    
					Fri
                    
					Sat
                    
					Cancel 


                </td></tr></tbody></table>
Posted
Updated 16-Feb-18 17:32pm
v2

1 solution

Not clear what you asking, but, I'm guessing this is what you looking for.

HTML
<table>
    <tbody>
        <tr>
            <th colspan="2">User registration</th>
        </tr>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td>Full name:
                </td>
            <td>
                <input id="Text1" type="text" /><br>
            </td>
        </tr>
        <tr>
            <td>Email:
                </td>
            <td>
                <input id="Text2" type="text" /></td>
        </tr>
        <tr>
            <td>City
                :</td>
            <td>
                <input id="Text3" type="text" /><br>
            </td>
        </tr>
        <tr>
            <td>Ride in group? </td>
            <td>
               Always <input name="ride" type="radio" value="text1" />
                Sometimes <input name="ride" type="radio" />
               Never <input name="ride" type="radio" />
            </td>
        </tr>
        <tr>
            <td>Days of the week</td>
            <td>
                Sun <input name="CheckboxDays" type="checkbox" />
                Mon <input name="CheckboxDays" type="checkbox" />
                Tue <input name="CheckboxDays" type="checkbox" />
                Wen <input name="CheckboxDays" type="checkbox" />
                Thu <input name="CheckboxDays" type="checkbox" />
                Fri <input name="CheckboxDays" type="checkbox" />
                Sat <input name="CheckboxDays" type="checkbox" />
            </td>
        </tr>
    </tbody>
</table>


Here how it look like:: cp_table - JSFiddle[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900