PDA

View Full Version : valign equivalent in IE 7


crmpicco
02-05-2008, 11:02 PM
Does anyone know the equivalent of valign that would work in MS IE 7?

I have valign="bottom" on some of my table cells, works fine in FF2 but not in MS IE 7.

http://www.ayrshireminis.com/index2.php


<div style="position: absolute; width: 200px; top: 0; right: 0">
<table width="90%" align="right">
<tr>
<td width="20%">&nbsp;</td>
<td align="right" width="7%" valign="bottom">
<img src="/mini/images/flag_en.gif" border="1" width="25" height="15" onMouseOver="style.cursor='pointer'" title="<?php if ($_SESSION["lang"] == "de") { echo "Englisch"; } else { echo "English";} ?>" onClick="location.href='/mini/index.php?lang=en'" alt="EN">
</td>
<td align="right" width="7%" valign="bottom">
<img src="/mini/images/flag_de.gif" border="1" width="25" height="15" onMouseOver="style.cursor='pointer'" title="Deutsch" onClick="location.href='/mini/index.php?lang=de'" alt="DE">
</td>
</tr>
</table>


Cheers,
Picco

effpeetee
02-06-2008, 08:34 AM
This may help,

http://www.jakpsatweb.cz/css/css-vertical-center-solution.html


Frank

VIPStephan
02-06-2008, 12:05 PM
The CSS equivalent of valign is vertical-align, e.g.: <td style="vertical-align: bottom;">…</td>