S
sevY
Hi zusammen,
eine äußerst rudimentäre Frage… aber ich bin halt Flashworker und bastel selten mal in HTML/CSS.
Also:
Ein Formular:
Das CSS dazu…
Ich habe standardmäßig die Inputfields in Formularen auf 100 Pixel Breite festgelegt, da nirgends mehr Breite benötigt wird, außer beim Impressum. Und da wollte ich dan eine Class definieren, die die Inputfelder auf 400px ausbreitet. So wie ich jetzt die Class definiert und eingebunden haben, wird das ganze Form oder die Tabellenzelle 400px Breit, die Inputfields jedoch 100px.
Wie geht es richtig?
Yves
eine äußerst rudimentäre Frage… aber ich bin halt Flashworker und bastel selten mal in HTML/CSS.
Also:
Ein Formular:
PHP:
<table cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
<form action=".$_SERVER['PHP_SELF']." method=\"post\" class=\"impressum\">
<input type=\"hidden\" name=\"action\" value=\"".$a['id']."\">
<input type=\"text\" name=\"element\" value=\"".$a['element']."\"><p>
<input type=\"submit\" value=\"Change\">
</form>
</td>
</tr>
</table>
Das CSS dazu…
PHP:
select,input
{
font-family:Verdana,Arial,Helvetica;
font-size:9px;
color:#252525;
font-weight:normal;
text-decoration:none;
background:#ffffff;
}
input
{
font-family:Verdana,Arial,Helvetica;
font-size:9px;
color:#252525;
font-weight:normal;
text-decoration:none;
background:#ffffff;
width:100px;
}
textarea
{
font-family:Verdana,Arial,Helvetica;
font-size:9px;
color:#252525;
font-weight:normal;
text-decoration:none;
background:#ffffff;
width:400px;
height:400px;
}
.impressum
{
font-family:Verdana,Arial,Helvetica;
font-size:9px;
color:#252525;
font-weight:normal;
text-decoration:none;
background:#ffffff;
width:400px;
}
Ich habe standardmäßig die Inputfields in Formularen auf 100 Pixel Breite festgelegt, da nirgends mehr Breite benötigt wird, außer beim Impressum. Und da wollte ich dan eine Class definieren, die die Inputfelder auf 400px ausbreitet. So wie ich jetzt die Class definiert und eingebunden haben, wird das ganze Form oder die Tabellenzelle 400px Breit, die Inputfields jedoch 100px.
Wie geht es richtig?
Yves