Tamaño de formulario
No consigo que la anchura del formulario sea igual en Explor er que en
Firefox y Opera. ¿Cual es el problema?.
ENLACE: http://www.arkitera.es/web/contacto/contacto.htm
HTML:
<code><div class="form">
<form id="myform" class="cssform" action="">
<p>
<label for="user">Nombre</label>
<input type="text" id="user" value="" />
</p>
<p>
<label for="emailaddress">Correo electrónico:</label>
<input type="text" id="emailaddress" value="" />
</p>
<p>
<label for="comments">Asunto:</label>
<input type="radio" name="hobby"/>
M&aacute;s información sobre un proyecto<br />
<input type="radio" name="hobby" class="threepxfix" />
M&aacute;s informacion sobre un socio <br />
<input type="radio" name="hobby" class="threepxfix" /> Visitar un edificio
<br />
<input type="radio" name="hobby" class="threepxfix" /> Concertar una cita
<br />
</p>
<p>
<label for="comments">Comentarios:</label>
<textarea name="textarea" cols="25" rows="5" id="comments"></textarea>
</p>
<div style="margin-left: 150px;">
<input type="submit" value="Submit" /> <input type="reset" value="reset"
/>
</div>
</form>
</div>
<div id="foto_contacto">
<img src="estudio2.jpg" alt="Foto del estudio" />
</div>
CSS:
.form{
float:left;
margin-left:37px;
}
.cssform p{
width: 425px;
clear: left;
margin: 0;
padding: 5px 0 8px 0;
padding-left: 150px; /*width of left column containing the label elements*/
border-top: 1px dashed gray;
}
.cssform label{
font-weight: bold;
float: left;
margin-left: -150px; /*width of left column*/
width: 145px; /*width of labels. Should be smaller than left column (155px)
to create some right margin*/
}
.cssform input[type="text"]{ /*width of text boxes. IE6 does not understand
this attribute*/
width: 180px;
}
.cssform textarea{
width: 250px;
height: 150px;
}
/*.threepxfix class below:
Targets IE6- ONLY. Adds 3 pixel indent for multi-line form contents.
to account for 3 pixel bug:
http://www.positioniseverything.net/explorer/threepxtest.html
*/
* html .threepxfix{
margin-left: 3px;
}
#foto_contacto{
padding-left:15px;
float:left;
}
#foto_contacto img{
width:449px;
}</code>