Thread höhe von buttons und inputfeldern (7 answers)
Opened by esskar at 2010-04-18 22:07

GwenDragon
 2010-04-19 13:35
#136235 #136235
User since
2005-01-17
14554 Artikel
Admin1
[Homepage]
user image
Natürlich nicht display: block. Die Elemente müssen ja inline bleiben sein. ;)

Es klappt so nicht. Jeder Browser rendert leicht anders.
Wenn du per CSS jetzt padding, margin auf 0 setzt, sind Unterschiede in verschiedenen Browsern zu sehen.

Kanns ja das mal testen:
Code (html): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="de" xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE7.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE8.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE9.js"></script>
<![endif]-->
<style type="text/css">
#textfeld1 { margin:0;padding:0;border:1px;vertical-align:top}
#button1 { margin:0;padding:0;border:1px;vertical-align:top}
</style>
<title>Test mit Button</title>
</head>
<body>
<input value="Das ist ein Text." type="input" id="textfeld1"><input value="Senden" type="submit" id="button1">
</body>
</html>

Last edited: 2010-04-19 15:03:27 +0200 (CEST)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread höhe von buttons und inputfeldern