Align radio button with text / numbers (answers) horizontally

  • Profile Image
    cndunga
    Asked on October 07, 2016 at 06:51 AM

    Dear All,

    I have the following code for a quiz answers: 

    </div>
                      <h4 class="quction"  > 
                         <?php echo $q->question;?> 
                      </h4>
                      <table width="100%" border="0" class="answeers">
                         <input type="hidden" name="<?php echo $q->questionid;?>" value="0" id="" checked >
                         <?php 
                            if (isset($q->answer1)) {  
                             ?>
                         <tr>
                            <td>
                               <input type="radio" name="<?php echo $q->questionid;?>" value="1" id=""><?php echo $q->answer1;?>
                            </td>
                         </tr>
                         <?php } ?>
                         <?php 
                            if (isset($q->answer2)) {  
                             ?>
                         <tr>
                            <td>
                               <input type="radio" name="<?php echo $q->questionid;?>" value="2" id=""><?php echo $q->answer2;?>
                            </td>
                         </tr>
                         <?php } ?>
                         <?php 
                            if (isset($q->answer3)) {  
                             ?>
                         <tr>
                            <td>
                               <input type="radio" name="<?php echo $q->questionid;?>" value="3" id=""><?php echo $q->answer3;?>
                            </td>
                         </tr>
                         <?php } ?>
                         <?php 
                            if (isset($q->answer4)) {  
                             ?>
                         <tr>
                            <td>
                               <input type="radio" name="<?php echo $q->questionid;?>" value="4" id=""><?php echo $q->answer4;?>
                            </td>
                         </tr>
                         <?php } ?>

    When I execute it, it produces the results as shown below
     std 5
    Question
    Which of the following numbers is divisible by 4

    2700

    5445

    67670

    20038

    How can I align the text / number to read like below?

    Question
    Which of the following numbers is divisible by 4
    ☐  
    2700
    ☐  5445
    ☐  67670
    ☐  20038

    Your assistance will be appreciated, Thanks

  • Profile Image
    jonathan
    Answered on October 07, 2016 at 11:04 AM

    Can you please tell us which of your form is this? We need to check the form to understand the issue and be able to provide you with the appropriate solution.

    Thanks.