Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I put together what you described there, and it's rendering properly for me. It's likely you have another style somewhere that's having an effect on your form, or your table. If you aren't doing so already, using a <a href="http://developer.yahoo.com/yui/reset/#code" rel="nofollow noreferrer">reset.css</a> file is extremely useful. If you want to see which styles are affecting a particular element, the <a href="https://addons.mozilla.org/en-US/firefox/addon/60" rel="nofollow noreferrer">Web Developer Toolbar</a> for firefox has a handy Style Information command for seeing which styles (from which files/style blocks/inline styles) are being applied to it. You can activate it by pressing <code>Ctrl+Shift+Y</code>, or hitting <code>CSS -&gt; View Style Information</code></p> <p>Here's the code that worked for me in IE7:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Test&lt;/title&gt; &lt;style&gt; #mytable { margin-bottom: 19px; border: solid green 1px; } #myform { border: solid red 1px; overflow: hidden; } #floaty { float: right; border: solid blue 1px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;table id="mytable"&gt; &lt;th&gt;Col 1&lt;/th&gt; &lt;th&gt;Col 3&lt;/th&gt; &lt;th&gt;Col 2&lt;/th&gt; &lt;tr&gt; &lt;td&gt;Val 1&lt;/td&gt; &lt;td&gt;Val 2&lt;/td&gt; &lt;td&gt;Val 3&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;form method="post" action="test.html" id="myform"&gt; &lt;fieldset id="floaty"&gt; &lt;label for="myinput"&gt;Caption:&lt;/label&gt; &lt;input id="myinput" type="text" /&gt; &lt;/fieldset&gt; &lt;fieldset&gt; &lt;p&gt;Some example content&lt;/p&gt; &lt;input type="checkbox" id="mycheckbox" /&gt; &lt;label for="mycheckbox"&gt;Click MEEEEE&lt;/label&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&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