• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

[ERLEDIGT] Anordnung Input-Element mit CSS

nordi

Neues Mitglied
Ich habe ein Formular, in dem tabellenähnlich mit CSS einige Daten rausgeschrieben werden sollen:

HTML:
<span class='t.pname'><input type='checkbox' value='1' name='Ackerbohnen' checked><a id='Ackerbohnen1' href='#'>Ackerbohnen</a></span>
<span class='t-sorte'>Winterbohnen</span>
<span class='t-funk'>Hauptkultur</span>
<span class='t-herk'>Aussaat</span>
<span class='t-aussaat'>150217</span>
<span class='t-erntevon'>310517</span>
<span class='t-erntebis'>E0617</span>

CSS:

CSS:
span.t-pname   { width: 100px; }
span.t-sorte   { width: 100px; float:left; }
span.t-funk    { width: 100px; float:left; }
span.t-herk    { width: 100px; float:left; }
span.t-aussaat { width: 55px; float:left; }
span.t-erntevon{ width: 55px; float:left; }
span.t-erntebis{ width: 55px; float:left; }

Das erste Feld (input-Element) wird jedoch erst am Ende gereiht (auch wenn in 't-pname; float:left' steht):

Winterbohnen, Hauptkultur, Aussaat, 150217, 310517, E0617, Ackerbohnen mit Checkbox.

Wie bekomme ich hier die Checkbox am Anfang der Ausgabe?
 
Werbung:
Werbung:
Zurück
Oben