Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Without seeing an example of the HTML as rendered it is hard to tell what is breaking the layout.</p> <p>I'd move away from a table based design for the search controls to something like:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="search"&gt; &lt;label&gt;Search: &lt;asp:DropDownList ID="ddlColum" runat="server"&gt;&lt;/asp:DropDownList&gt;&lt;/label&gt; &lt;label&gt;Value: &lt;asp:TextBox ID="txtValue" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;/label&gt; &lt;span&gt;&lt;asp:Button ID="btnSearch" runat="server" Text="Search"&gt;&lt;/asp:Button&gt;&lt;/span&gt; &lt;/div&gt; &lt;asp:GridView ID="summaryGrid" runat="server"&gt;&lt;/asp:GridView&gt; &lt;/div&gt; </code></pre> <p>With the following CSS styles:</p> <pre><code>.search { width:100%; background-color:#F00; padding:2px; } .search label, .search span { width:32%; color:#FFF; font-weight:bold; display:inline-block; } .container table { width:100%; } </code></pre> <p><a href="http://jsfiddle.net/bX2mL/4/" rel="nofollow">This fiddle</a> gives you an idea of how it should work</p> <p>Adding the label tags also gets you a more accessible form.</p> <p><strong>Edit</strong> In response to your comment, and if you get the table enforced upon you from above (I've had that happen), don't nest the tables.</p> <pre><code>&lt;div class="container"&gt; &lt;table&gt; &lt;!-- Search Control Stuff --&gt; &lt;/table&gt; &lt;asp:GridView ID="summaryGrid" runat="server"&gt;&lt;/asp:GridView&gt; &lt;/div&gt; </code></pre> <p>Setting the widths of the search table and gridview table by CSS as appropriate</p> <p>Also here is a <a href="http://jsfiddle.net/bX2mL/5/" rel="nofollow">new fiddle</a> showing how to do this with the semantically better option of the <a href="http://www.html-tags-guide.com/html-fieldset-tag.html" rel="nofollow">fieldset</a> tag</p> <p>I've also tweaked the width of the labels and spans</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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