1

私は個人的な使用のためにウェブサイトをやっています。テーブルを使用せずにラベルの横にテキスト ボックスを設定する方法について、アシスタントが必要です。それらは独自の部門タグにあります

<div id="outter">

        <div class="1">
       Fill out and submit the form below and we will contact you a.s.a.p.
        </div>

        <div class="2">
       <label> Name: </label>
        </div>
           <div class="2">
        <input name="name" type="text" class="3" >
        </div>
</div>

これを取得しようとしています:

[input box 1]   label 1
[input box 2]   label 2

より良い詳細へのリンクはこちら

http://homework.genesee.edu/~dmead1/forms/table.html

4

1 に答える 1

0

あなたの問題の非常に簡単な解決策

HTML

<fieldset class="login">     
<legend>Fill out and submit the form below and we will contact you a.s.a.p. </legend>

<div><label for="name">Name</label> <input type="text" id="name" name="name"></div>

</fieldset>

CSS

 fieldset div {
  margin:0.3em 0;
  clear:both;
 }

フィドルをチェック

于 2013-05-04T07:26:24.750 に答える