What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Align radio button with text / numbers (answers) horizontally

    Asked by cndunga 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

    name hidden
  • Profile Image
    JotForm Support

    Answered by jonathan 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.