Wie richte ich ein Label und ein Textfeld aus?

endet wie

             XXXXX
             XXXXX
Description: XXXXX

Möchte ich

             XXXXX
Description: XXXXX
             XXXXX

"Beschreibung" manchmal mehrere Zeilen umfasst.

Code:

<p class="DataForm">

<label>Blah blah blah Description:</label>

<asp:TextBox ID="txtBlahblahblahDescription" runat="server" TextMode="MultiLine"  Rows="8" Columns="50"></asp:TextBox><br />

</p>

CSS:

.DataForm
{

}

.DataForm label
{
    display: inline-block;
    font-size:small;
    margin-left:5px;
    width:5%;
    min-width:60px;
}

.DataForm input
{
    margin-right:9px;
    display: inline-block;
    width:21%;
    min-width:30px;
}

InformationsquelleAutor der Frage NibblyPig | 2009-12-03

Schreibe einen Kommentar