Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS vertical align IE 6 & 7 problem
    text
    copied!<p>Hi there I've got the following code:</p> <pre><code>... &lt;li&gt;&lt;a href=""&gt; &lt;span class="nr"&gt;2&lt;/span&gt; &lt;span class="item"&gt;Despre clinic&amp;atilde;&lt;/span&gt; &lt;span class="img"&gt;&lt;img src="/images/footer_navi_icon1.gif" alt=""/&gt;&lt;/span&gt; &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt; &lt;span class="nr"&gt;3&lt;/span&gt; &lt;span class="item"&gt;Servicii&lt;/span&gt; &lt;span class="img"&gt;&lt;img src="/images/footer_navi_icon1.gif" alt=""/&gt;&lt;/span&gt; &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt; &lt;span class="nr"&gt;4&lt;/span&gt; &lt;span class="item"&gt;Echipa medical&amp;atilde;&lt;/span&gt; &lt;span class="img"&gt;&lt;img src="/images/footer_navi_icon1.gif" alt=""/&gt;&lt;/span&gt; &lt;/a&gt;&lt;/li&gt; ... </code></pre> <p>and css:</p> <pre><code>#footer .navi { margin: 0; padding: 0; list-style: none; } #footer .navi li { width: 207px; height: 85px; background: url(../images/footer_navi.gif) 0 0 no-repeat; float: left; vertical-align: middle; display: table-row; } #footer .navi a { width: 207px; height: 85px; color: #CC0000; text-decoration: none; } #footer .navi span.img { height: 85px; vertical-align: middle; display: table-cell; } #footer .navi span.item { height: 85px; padding: 0 5px; width: 83px; font-size: 16px; vertical-align: middle; display: table-cell; } #footer .navi span.nr { height: 85px; padding: 0 9px; width: 9px; font-size: 20px; color: #FF9999; vertical-align: middle; display: table-cell; } </code></pre> <p>As you can see I've got a width set for <code>.item</code> so my text wraps. Since IE doesn't support table-cell and table-row i've done <code>* html #footer .navi li {display: block;</code>} and inline-block for my spans.</p> <p>Now I've got 2 issues:</p> <ol> <li>my text won't wrap unless i set a max-width for IE6&amp;7</li> <li>despite using the star hack IE6&amp;7 still won't render well</li> </ol> <p>Any ideas? Thanks</p>
 

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