Würden Sie gerne auf diese Nachricht reagieren? Erstellen Sie einen Account in wenigen Klicks oder loggen Sie sich ein, um fortzufahren.

Formular erstellen

 :: HTML

Nach unten

Formular erstellen Empty Formular erstellen

Beitrag von Zwieback Mo März 03, 2014 9:23 pm

HTML:

<fieldset>
<legend>Kontaktdaten</legend>
<label for="anrede">
Anrede
<select id="anrede" name="anrede">
<option selected="selected">Herr</option>
<option>Frau</option>
<option>Dr</option>
</select></label>
<br />
<label for="vorname">
Vorname
<input id="vorname" name="vorname" value="Vorname" onfocus="this.value=''" type="text" />
</label>
<br />
<label for="Nachname">
Nachname
<input id="Nachname" name="Nachname" value="Nachname" onfocus="this.value=''" type="text" />
</label>
</fieldset>

CSS:

body { font-family: Arial;
color: White;
}


.titel { font-size: 20pt;
font-weight: bold;
color: #ffffff;
}


legend { color:White;
margin: 5px;
font-size: 20px;

}

fieldset { width:300px;
height: 200px;
background-color: gray;
padding: 10px;
}

label
{
clear: left;
float: left;
display: block;
width: 8em;
}



input
{
position: relative;
top: -1em;
left: 6em;
display: block;
padding: 2px;
}


select
{
position: relative;
top: -1em;
left: 6em;
display: block;
padding: 2px;
}

Zwieback
Admin

Anzahl der Beiträge : 33
Anmeldedatum : 03.03.14

https://htmlcssanleitungen.forenverzeichnis.com

Nach oben Nach unten

Nach oben

- Ähnliche Themen

 :: HTML

 
Befugnisse in diesem Forum
Sie können in diesem Forum nicht antworten