Ecco il mio html:problema CSS: Combinazione di "text-align: center" e "min-width" non funziona in IE 7/IE 8 modalità compat
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
input.navbutton
{
text-align: center;
min-width: 100px;
}
</style>
</head>
<body>
<input type="submit" class="navbutton " value="Next" />
</body>
</html>
su IE 7, questo finisce per cercando in questo modo:
alt text http://i48.tinypic.com/2ijm6x5.png
Ma su Firefox sembra che questo:
alt text http://i50.tinypic.com/14o6ej9.jpg
Come si può vedere, il testo non è centrato correttamente in IE 7.
Qualche idea su come risolvere questo?
Bumped nello stesso problema oggi. Non riesci a trovare una soluzione ragionevolmente accettabile ... vero? – Peter
L'aggiunta di 'line-height' sembra funzionare. Vedi la mia risposta qui sotto per un esempio completo. – Pluto