Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you mean this?</p> <p><a href="http://jsfiddle.net/Nq8Us/1/" rel="nofollow">http://jsfiddle.net/Nq8Us/1/</a></p> <p>I've edited your code and removed the extra 'padding' of green under red in question, by removing inline-styling, then added some styles in css pointing to the <code>#problem_cell_table</code>.</p> <p>I suggest you remove all your inline styling and shift them to the stylesheet. Inline-styling overrides all stylesheet code. That's bad and also explains why you don't get any effect from stylesheet changes.</p> <p>As to why there's a padding, it's because your main table's height that is wrapping all the rows, cells, and inner-tables, is higher than the declared row height added together. The cells in your all the rows automatically adjusts it's size to compensate for pixels that doesn't add up to your total declared of <code>525px</code>.</p> <p>In the example I've done, I "cheated" by setting css of the inner-table to <code>height: 100%</code> so it will expand to fit the height, should miscalculations occur.</p> <p>Give me a moment, I'll add more to the <code>&lt;div&gt;</code> styling methods in my answer.</p> <p>Edit:</p> <p>Ok here my attempt at the layout using <code>&lt;div&gt;</code> and CSS. <a href="http://jsfiddle.net/XbFcJ/" rel="nofollow">http://jsfiddle.net/XbFcJ/</a></p> <p>Remember to use a CSS Reset Stylesheet first!</p> <p>The CSS: </p> <pre><code>&lt;style&gt; body{ background: black; } .wrapper{ } .container{ width: 1500px; } .content-table { border: 25px solid #fff; overflow: hidden; background: #fff; } .content-column { margin-right: 25px; float: left; height: 475px; } .content-column.last { margin-right: 0; } .first, .third, .last { width: 425px; background-color: green; margin-right: 25px; } .top{ height: 225px; border-bottom: 25px solid blue; } .left { height: 225px; width: 200px; border-right: 25px solid blue; } .content-column.second { width: 100px; background-color: red; } .last .left { background-color: red; } .last .left .top { height: 100px; border-bottom: 25px solid blue; }​ &lt;/style&gt; </code></pre> <p>The HTML:</p> <pre><code>&lt;body&gt; &lt;div class="wrapper"&gt; &lt;div class="container"&gt; &lt;div class="content-table"&gt; &lt;div class="content-column first"&gt; &lt;div class="top"&gt; &lt;/div&gt; &lt;div class="bottom"&gt; &lt;div class="left"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="content-column second"&gt; &lt;/div&gt; &lt;div class="content-column third"&gt; &lt;div class="top"&gt; &lt;div class="left"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="bottom"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="content-column last"&gt; &lt;div class="top"&gt; &lt;div class="left"&gt; &lt;div class="top"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="bottom"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt;​ </code></pre>
    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.
 

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