Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 11.11.06 16:35 
Tach.

Mal ne Frage... Wieso zeigen mir der Firefox und der Internet Explorer bei dem folgenden Code unterschiedliche Sachen an? Der Firefox macht wie ihm gesagt keinen Abstand zwischen Beschriftung des Buttons und dessen Rand. Der Internet Explorer macht da irgendwie nen Abstand rein.

Jemand ne Lösung? Ich will den Abstand zwischen Buttonrand und Beschriftung frei wählen können.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <html>
    <head>
      <title></title>
    </head>
    <body>

      <p>
      <input type="button" value="Tralalalalalala" style="padding: 0px;" />
      </p>

    </body>
  </html>


Schon probiert auf <button> auszuweichen. Gleiches Problem. :(

mfG,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 11.11.06 16:40 
Warum nicht einfach so:
ausblenden Quelltext
1:
      <input type="button" value="Tralalalalalala" style="width: 250px;" />					

Sowohl in den Gecko-Browsern als auch beim IE wird das korrekt interpretiert, das heißt beim IE fällt der Rand weg, wenn man die Breite kleiner setzt bzw. bei den Geckos wird der Rand genauso groß wie beim IE wenn den Button größer macht.
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Mo 13.11.06 14:31 
Jup, danke. :)

Funktioniert so. Hab ich nicht drangedacht. Muss dafür halt dann jedem <input ... /> eine eigene ID geben wegen verschiedener Größen, aber's funktioniert.

Vielen Dank. :)

mfG,
WeBBy

_________________
Steht der Bauer im Gemüse, hat er später grüne Füße.