Note that there are some explanatory texts on larger screens.

plurals
  1. POLetter spacing seems to make divs move
    primarykey
    data
    text
    <p>I am designing a table-like cluster of divs. There are only two rows.</p> <p>The "table" is built up like the following:</p> <pre><code>&lt;div class="artist_meta_first_row"&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;/div&gt; &lt;div class="artist_meta_second_row"&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;div&gt;some text&lt;/div&gt; &lt;/div&gt; </code></pre> <p>Fairly simple, right? Well here are the styles:</p> <pre><code>.artist_meta_first_row{ text-transform: uppercase; padding-bottom: 40px; font-family: futura-pt, sans-serif; font-weight: 100; letter-spacing: 3px; } .artist_meta_first_row div{ display: inline-block; min-width: 190px; } .artist_meta_second_row div{ display: inline-block; min-width: 190px; vertical-align: top; } </code></pre> <p>The problem I have is that the text in the divs in the first row starts a little bit more on the right than the text in the second row divs. It almost looks like there is some padding-left in the first row, but there isn't in the css code. So after a lot of trial and error I found out that it is due to the <code>letter-spacing: 3px;</code> in the first row - it seems to make the divs in the first row a little wider, causing the cells in the first and second row not to be aligned well, even though I specified the width.</p> <p>Is there any way I can properly align the two rows without having to get rid of the letter spacing?</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.
    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