Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>My guess is that you want somthing like this:</p> <pre><code>&lt;html&gt;&lt;body&gt; &lt;table style="width: auto"&gt; &lt;tr style="background-color: rgb(221, 255, 221)"&gt; &lt;td style="padding-left:20px;"&gt; text1 &lt;select size="1" style="width: 262px"&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;12345&lt;/option&gt; &lt;/select&gt; &lt;input type="text" size="5" style="position: relative; left: -262px; width: 239px; margin-right: -262px;"&gt; &lt;span style="position: relative; left: -239px"&gt;text2&lt;/span&gt; &lt;input type="text" size="5"&gt; &lt;span&gt;text3&lt;/span&gt; &lt;input type="text" size="5"&gt; &lt;span&gt; &lt;/span&gt; &lt;/td&gt; &lt;td&gt; info &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt;&lt;/html&gt; </code></pre> <p>I'm only moving the one you want to place over the select, and compensate with a negative margin.</p> <p>Else the width of the table cell would have been the same as when you don't use any positioning.</p> <p>Update 2011-08-11 13:00:</p> <pre><code>&lt;html&gt;&lt;body&gt; &lt;table style="width: auto"&gt; &lt;tr style="background-color: rgb(221, 255, 221)"&gt; &lt;td style="padding-left:20px;"&gt; text1 &lt;select size="1" style="width: 262px"&gt; &lt;option&gt;&lt;/option&gt; &lt;option&gt;12345&lt;/option&gt; &lt;/select&gt; &lt;input type="text" size="5" style="position: relative; left: -262px; width: 239px; margin-right: -242px;"&gt; &lt;span&gt;text2&lt;/span&gt; &lt;input type="text" size="5"&gt; &lt;span&gt;text3&lt;/span&gt; &lt;input type="text" size="5"&gt; &lt;span&gt; &lt;/span&gt; &lt;/td&gt; &lt;td&gt; info &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt;&lt;/html&gt; </code></pre> <p>I forgot to remove the last position on the "text2"-span. And after that i had to to change the negative marig-right a bit, so "text2" did not end up on tom of the long input and the select.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. 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