Note that there are some explanatory texts on larger screens.

plurals
  1. POText and buttons outgrow popup box size
    text
    copied!<p>A legacy website that I am working on has a popup box that uses an iFrame and has nested tables. Within the cells of this table there is simple text and the last row of the table has two input boxes; one left aligned and one right aligned. </p> <p>On screen resolution higher than 1024 X 768 everything is displayed within the borders of the box. The problem lies when I have resolution of 1024 X 768 or lower the text expands wider then the box and therefore horizontal scroll bars are turned on. I like to modify the inline css styling that so prominent in this design so the text and buttons render the same in any resolution and no scroll bars are turned on. </p> <p>The only thing I can see is that table width is set to 100%.</p> <p>Any help will be a life saver.</p> <p>Thanks</p> <p>Please find screenshots attached:</p> <p><strong>> 1024 x 768 sample</strong> <img src="https://i.stack.imgur.com/uy7Y0.png" alt="Greater than 1024"> <strong>1024 X 768</strong></p> <p><img src="https://i.stack.imgur.com/t7ATY.png" alt="1024 x 768"></p> <p>Here is the markup for the tables</p> <pre><code>&lt;div align="center" style="padding: 8px 10px 4px;"&gt; &lt;table cellspacing="0" cellpadding="0" align="center" width="600px"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td align="center" valign="top"&gt; &lt;div class="container"&gt; &lt;TABLE cellSpacing="5" cellPadding="5" width="100%" class="gradientHeader"&gt; &lt;tr&gt; &lt;th width="100%"&gt; xxxxxx &lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="100%"&gt; some text &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="100%" style="PADDING-LEFT: 10px"&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;td width="100%"&gt; &lt;FIELDSET style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none;padding:0;"&gt; &lt;asp:RadioButtonList id="rbl" runat="server" /&gt; &lt;/FIELDSET&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="left"&gt; &lt;AN IMAGE BUTTON&gt; &lt;/td&gt; &lt;td align="right"&gt; &lt;AN IMAGE BUTTON&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="hidden" name="hidProductId" id="hidProductId"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload