Alternativ zu timmy151 geht auch einmalig die Breite (und z.B. Farben) zu definieren:
PHP-Code:
<style type="text/css"> input.button { width:400px; color:red; background-color:blue;} </style>
/* class="button" zu <input> */
Hier dein Beispiel:
Code:
<style type="text/css"> input.button { width:400px; color:red; background-color:blue;} </style>
<FORM>
<INPUT TYPE="BUTTON" class="button" VALUE="Dieser Text ist so lang" ONCLICK="window.location.href='Ziel.Endung'">
</FORM>
<FORM>
<INPUT TYPE="BUTTON" class="button" VALUE="Beide Buttons sollen aber gleich lang sein"
ONCLICK="window.location.href='Ziel.Endung'">
</FORM>
<FORM>
<INPUT TYPE="BUTTON" class="button" VALUE="TEXT" ONCLICK="window.location.href='Ziel.Endung'">
</FORM>
Grüße
Eule66