Wie gute Form suchen, ohne Tisch
Dieses Tutorial erklärt, wie man eine gute Form mit einem sauberen CSS-Design mit nur Etiketten-und Input-Tags zur Simulation einer HTML-Tabelle Struktur. Sie können alle CSS / HTML-Elemente, um Ihre benutzerdefinierten Formular für Ihre Web-Projekte: 
Schritt 1: Erstellen Sie einfache HTML-Struktur
<form> > <div class = "box"> <h1> Kontakt-Formular: </ h1> <label> <span> Vollständiger Name </ span> class = "input_text" name = "name" id = "name" / > <input type = "text" class = "input_text" name = "name" id = "name" /> </ label> <label> <span> E-Mail </ span> class = "input_text" name = "email" id = "email" / > <input type = "text" class = "input_text" name = "email" id = "email" /> </ label> <label> <span> Betreff </ span> class = "input_text" name = "subject" id = "subject" / > <input type = "text" class = "input_text" name = "subject" id = "subject" /> </ label> <label> <span> Nachricht </ span> name = "feedback" id = "feedback" > </textarea> <textarea class = "message" name = "feedback" id = "feedback"> </ textarea> class = "button" value = "Submit Form" / > <input type = "button" class = "button" Wert = "Submit Form" /> </ label> </ div> </ form>
Schritt 2 Erstellen Sie CSS-Code
; padding : 0 ; } * (Margin: 0; padding: 0;) % normal Arial, Helvetica, sans-serif ; background : # 161712 ; } body (font: normal 100% Arial, Helvetica, sans-serif; background: # 161712;) ; padding : 0 ; color : #ffffff ; } Form, Eingang, wählen Sie, textarea (margin: 0; padding: 0; color: # ffffff;) Div. box ( ; margin: 0 auto; width: 500px; ; background: # 222222; position: relative; top: 50px; # 262626 ; border: 1px solid # 262626; ) Div. Feld h1 ( ; color: # ffffff; font-size: 18px; text-transform: uppercase; 5px 5px ; padding: 5px 0 5px 5px; # 161712 ; border-bottom: 1px solid # 161712; # 161712 ; border-top: 1px solid # 161712; ) Div. Feld Label ( width: 100%; ; display: block; ; background: # 1C1C1C; # 262626 ; border-top: 1px solid # 262626; # 161712 ; border-bottom: 1px solid # 161712; 10px 0 ; padding: 10px 0 10px 0; ) Div. Feld Label span ( ; display: block; ; color: # bbbbbb; font-size: 12px; float: left; width: 100px; text-align: right; 0 0 ; padding: 5px 20px 0 0; ) Div. Feld. input_text ( ; padding: 10px 10px; width: 200px; ; background: # 262626; double # 171717 ; border-bottom: 1px # 171717 double; double # 171717 ; border-top: 1px double # 171717; # 333333 ; border-left: 1px double # 333333; # 333333 ; border-right: 1px double # 333333; ) Div. Feld. message ( ; padding: 7PX 7PX; width: 350px; ; background: # 262626; double # 171717 ; border-bottom: 1px double # 171717; double # 171717 ; border-top: 1px double # 171717; # 333333 ; border-left: 1px double # 333333; # 333333 ; border-right: 1px double # 333333; overflow: hidden; height: 150px; ) Div. Feld. Schaltfläche ( 10px 0 ; margin: 0 0 10px 0; ; padding: 4px 7PX; ; background: # CC0000; border: 0px; ; position: relative; top: 10px; links: 382px; width: 100px; double # 660000 ; border-bottom: 1px double # 660000; double # 660000 ; border-top: 1px double # 660000; #FF0033 ; border-left: 1px double # FF0033; #FF0033 ; border-right: 1px double # FF0033; )
Schließlich sind wir tun. Wir haben eine gute Form suchen, ohne Tabelle. Beispiel anzeigen
Weitere Artikel:
Wenn Sie viel Freude beim Lesen dieses Artikels finden Sie andere Verwandte Artikel unter:



















































Sag uns Deine Meinung!