Note that there are some explanatory texts on larger screens.

plurals
  1. POHtml table cells don't align properly
    primarykey
    data
    text
    <p>I can't understand why doesn't this table align properly. There are 9 pictures in first row, and 3 pictures in the second row. For some reason this table stretches beyond what is necessary, and produces gaps between the pictures. The width of the table is 990 and sum of widths of all the pictures for each row is also 990 (I don't count border width here, I just included it to show where the cells separate. The gap between the pictures is so large that it can not be explained by the border width).</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;body bgcolor="#008000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" &gt; &lt;table id="Table_01" width="990" border="1" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_02.jpg" width="90" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_03.jpg" width="102" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_04.jpg" width="112" height="52" /&gt;&lt;/td&gt; &lt;td colspan="2"&gt;&lt;img src="images/index_05.jpg" width="120" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_07.jpg" width="120" height="52" /&gt;&lt;/td&gt; &lt;td colspan="2"&gt;&lt;img src="images/index_06.jpg" width="112" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_07.jpg" width="120" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_08.jpg" width="134" height="52" /&gt;&lt;/td&gt; &lt;td colspan="1"&gt;&lt;img src="images/index_09.jpg" width="80" height="52" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="4"&gt;&lt;img src="images/index_11.jpg" width="346"/&gt;&lt;/td&gt; &lt;td colspan="3"&gt;&lt;img src="images/index_12.jpg" width="308"/&gt;&lt;/td&gt; &lt;td colspan="4"&gt;&lt;img src="images/index_13.jpg" width="336"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here is how it looks. I made page background color to be green, so that it can be easily separated from images :</p> <p><img src="https://i.stack.imgur.com/ka4a8.png" alt=""></p>
    singulars
    1. This table or related slice is empty.
    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