Ich bin gerade dabei ein Kontaktformular zu gestallten, aber leider will der Float im IE nicht funktionieren:
Hat jemand eine Idee, worans liegen kann? Im Firefox und Opera gehts problemlos...
HTML:
<div id='ref'>
<b>Kontakt</b>
<br /><br />
<form action='' method='post'>
<div id='kontakt_left'>
<p>Vorname: </p><input type='text' name='vname' value='' /><br />
<p>Nachname: </p><input type='text' name='nname' value='' /><br />
<p>Email: </p><input type='text' name='email' value='' /><br />
<p>Betreff: </p><input type='text' name='betreff' value='' /><br />
</div>
<div id='kontakt_right'>
<p>Nachricht:</p><textarea name='text'></textarea><br />
<p>Visuelle Bestätigung: </p>
<img src='{IMG}captcha.jpg' alt='Visueller Code' />
<input type='text' name='captcha' value=''/><br />
</div>
</form>
</div>
Code:
#ref
{
margin: 0px;
padding: 0px;
background: white;
width: 510px;
padding: 10px;
padding-top: 20px;
font-size: 95%;
min-height: 240px;
text-align: justify;
}
#ref dl
{
margin: 0px;
padding: 0px;
}
#ref dd
{
margin: 0px;
padding: 0px;
font-size: 95%;
text-align: justify;
}
#ref dd img
{
float: left;
margin-right: 10px;
}
#ref dd a
{
padding: 2px;
color: black;
text-decoration: none;
}
#ref dd a:hover
{
color: white;
background: black;
}
#ref dt
{
font-weight: bold;
margin-bottom: 5px;
}
#ref dt:first-letter
{
font-size: 150%;
font-family: Georgia;
}
#ref a
{
padding: 2px;
color: black;
text-decoration: none;
}
#ref a:hover
{
color: white;
background: black;
}
#ref ul
{
margin: 0px;
padding: 0px;
margin-top: 10px;
margin-left: 40px;
}
#ref li
{
line-height: 20px;
}
#ref p
{
width: 300px;
margin: 0px;
padding: 0px;
}
#ref input, #ref textarea
{
border: 1px;
border-style: solid;
border-color: #CCCCCC;
padding: 2px;
width: 150px;
margin-top: 2px;
margin-bottom: 10px;
}
#ref input:focus, #ref textarea:focus
{
border-color: black;
background: #C6ECFF;
}
#kontakt_left
{
width: 200px;
float: left;
}
#kontakt_right
{
float: left;
width: 300px;
}
#kontakt_right img
{
margin-bottom: 10px;
margin-right: 10px;
margin-top: 3px;
}
#ref textarea
{
width: 300px;
height: 70px;
}
Hat jemand eine Idee, worans liegen kann? Im Firefox und Opera gehts problemlos...