Note that there are some explanatory texts on larger screens.

plurals
  1. POtable td width and float
    primarykey
    data
    text
    <p>Good evening! I'm doing this thing:</p> <pre><code>&lt;div id="infoGen" align="center"&gt; &lt;table id="tabInfoGen"&gt; &lt;tr&gt; &lt;td id="primacol"&gt;Nome:&amp;nbsp;&lt;font id="h3"&gt;&lt;%=u.getNome()%&gt;&lt;/font&gt;&lt;br&gt; Cognome:&amp;nbsp; &lt;font id="h3"&gt;&lt;%=u.getCognome()%&gt;&lt;/font&gt;&lt;br&gt; Indirizzo:&amp;nbsp; &lt;font id="h3"&gt;&lt;%=u.getIndirizzo()%&gt;&lt;/font&gt;&lt;br&gt; Città:&amp;nbsp;&lt;font id="h3"&gt;&lt;%=u.getCitta()%&gt;&lt;/font&gt; &lt;/td&gt; &lt;td id="secondacol"&gt;Data di Nascita:&amp;nbsp; &lt;font id="h3"&gt;&lt;%=u.getDataNascita()%&gt;&lt;/font&gt;&lt;br&gt; Luogo di Nascita:&amp;nbsp;&lt;font id="h3"&gt; &lt;%=u.getLuogoDiNascita()%&gt;&lt;/font&gt;&lt;br&gt; Telefono:&amp;nbsp;&lt;font id="h3"&gt; &lt;%=u.getTelefono()%&gt;&lt;/font&gt;&lt;br&gt; Email:&amp;nbsp; &lt;font id="h3"&gt;&lt;%=u.getEmail()%&gt;&lt;/font&gt; &lt;/td&gt; &lt;td id="terzacol"&gt;Username:&amp;nbsp; &lt;font id="h3"&gt;&lt;%=u.getUsername()%&gt;&lt;/font&gt; &lt;br&gt; Password:&amp;nbsp; &lt;font id="h3"&gt; &lt;% for (int i = 0; i &lt; u.getPassword().length(); i++) out.print("*"); %&gt; &lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>with this css</p> <pre><code>#infoGen { background-color: #F2F5A9; width: 800px; border-radius: 20px; border: 1px solid black; } #infoGen table { width: 100%; padding-top: 20px; padding-bottom: 20px; padding-left: 10px; padding-right: 10px; font: 16px Impact, sans-serif; text-align: left; } td #primacol { float: left; margin-left: 50px; width: 200px; } td #secondacol { width: 200px; float: left; margin-left: 20px; } td #terzacol { float: left; margin-left: 50px; width: 200px; } </code></pre> <p>the problem is that I would like to have 3 columns with the same width but In this case I have the first column very large and the other two are small. How can I fix this?</p> <p><a href="http://jsfiddle.net/" rel="nofollow">http://jsfiddle.net/</a></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.
 

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