I am trying to vertically align text in IE7 is proving to be a PITA without the css options of display: table;
and display: table-cell;
It is for a navigation that looks similar to this:
<ul>
<li><a href="#"><span>Text covers one line</span></a></li>
<li><a href="#"><span>Text covers two lines, problem occurs</span></a></li>
</ul>
CSS:
ul li a{ display: table; zoom: 1; width: 240px; height: 30px;}
ul li a span{ width: 200px; display: table-cell; zoom: 1; vertical-align: middle; padding: 0 30px 0 20px; }
Works on newer browsers. I can get the text to center easily with only one line of text, but when it goes to two I can't seem to get anything working.