How to prevent table cell from shrinking when there is no data available in that particular cell using CSS

Viewed 10

Here, I have used Add rule (X) which will fetch data from Form and add that particular data in Generate Report for example: if user selected the "yes" it will check the box as "X" but in Generate Report the unselected option check box is shrinking/collapse to small in size I have two questions, (i) Is there any direct relation applying the format to effect the table cell in css (ii) How can I prevent table cell from shrinking if there is no data available in that cell/table

  1. Below is my code which I used in chrome inspect
            <span style="font-size: 12px;">
                                                                                                                                                                                 
             <strong>8. HAS PATIENT HAD SAME OR SIMILAR CONDITION?</strong>
                                                                                                                                                                             
                </span>
                                                                                                                                                                             
              <table style="
                    table-layout: fixed;">
                                                                                                                                                                                 
                 <tbody>
                                                                                                                                                                                     
                     <tr>
                                                                                                                                                                                         
                      <td style="width: 8%;text-align: right;">
                                                                                                                                                                                             
                        <span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">
                                                                                                                                                                                                 
                          <strong>YES</strong>
                                                                                                                                                                                             
                          </span>
                                                                                                                                                                                         
                            </td>
    2. Here, I have inserted one new table inside of main table
                                                                                                                                                                                         
            <td style="width: 15%;text-align: center;">
                                                                                                                                                                                             
            <table style="width: 28%;margin-left: 32%;table-layout:fixed;">
                                                                                                                                                                                                 
            <tbody>
                                                                                                                                                                                                     
             <tr>
                                                                                                                                                                                                         
             <td style="width: 100.0000%;height: auto;border: 1px solid black;white-space: 
                   nowrap;">
                                                                                                                                                                                                             
                <span class="fr-deletable saved  rulenode " contenteditable="false" nt-report- 
                 rule-id="d3360a92-d0b6-4c6a-8abc-15d455d92571">X</span>
                                                                                                                                                                                                         
                </td>
                                                                                                                                                                                                     
                    </tr>
                                                                                                                                                                                                 
                      </tbody>
                                                                                                                                                                                             
                         </table>
                                                                                                                                                                                         
                             </td>
                                                                                                                                                                                         
                            <td style="width: 8%;text-align: right;">
                                                                                                                                                                                             
                    <span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;">
                                                                                                                                                                                                 
                           <strong>NO</strong>
                                                                                                                                                                                             
                         </span>
                                                                                                                                                                                         
                                </td>
                                                                                                                                                                                         
                      <td style="width: 14.9607%; text-align: center;">
                                                                                                                                                                                             
                  <table style="width: 28%;margin-left:32%;table-layout: fixed;">
                                                                                                                                                                                                 
                  <tbody>
                                                                                                                                                                                                     
                 <tr>
                                                                                                                                                                                                         
                  <td style="width: 100.0000%;border: 1px solid black;min-width: 28%;min-height: 
                       14%;">
                                                                                                                                                                                                             
                  <span class="fr-deletable saved  rulenode " contenteditable="false" nt-report- 
                   rule-id="39e61622-3bb3-41b1-934e-170849c90167">X</span>
                                                                                                                                                                                                         
                   </td>
                                                                                                                                                                                                     
                        </tr>
                                                                                                                                                                                                 
                          </tbody>
                                                                                                                                                                                             
                            </table>
                                                                                                                                                                                         
                                        </td>
                                                                                                                                                                                         
                                    <td style="width: 53.9369%;">
                                                                                                                                                                                             
                                 <span style="font-family: Arial, Helvetica, sans-serif; font- 
                                    size: 12px;">
                                                                                                                                                                                                 
                              <strong>IF YES, STATE WHEN AND DESCRIBE:&nbsp;</strong>
                                                                                                                                                                                             
                   </span>
                                                                                                                                                                                             
                   <span style="font-size: 12px;"></span>
                                                                                                                                                                                             
                     <span style="font-size: 10px;"></span>
                                                                                                                                                                                             
                   <span class="fr-deletable saved  datanode " contenteditable="false" nt-report- 
                   data-id="f3d62102-6d23-480d-a21b-501692629f4c">describe</span>
                                                                                                                                                                                         
                </td>
                                                                                                                                                                                     
                 </tr>
                                                                                                                                                                                 
                 </tbody>
                                                                                                                                                                             
                  </table>
    
                  
0 Answers
Related