Form align

5 views
Skip to first unread message

Felipe Carreiro

unread,
Nov 30, 2009, 8:46:47 AM11/30/09
to object-or...@googlegroups.com
Hi, i´m Graphic Design and i have some questions. Now, i´m ask about <form> elements.

Is correct use structure of grids for align elements in box form?

Example:

<form>
    <fieldset>
        <legend></legend>
        <div class="line">
            <div class="unit size1of2">
                <label for="inputa"> Label1</label>
                <input type="text" id="inputa" />
            </div>
            <div class="unit size1of2">
                <label for="inputb"> Label2</label>
                <input type="text" id="inputb" />
            </div>
            <div class="line txtR">
                <input type="button" />
            </div>
        </div>
    </fieldset>
</form>


In CSS (plus):
label { display:block; }



Preview: :)

Label1                Label2
----------------         ----------------
|              |          |              |
----------------         ----------------
                         
                         ----------------
                         ||BUTTON||
                         ----------------

Tnks.

--
Felipe Carreiro
Reply all
Reply to author
Forward
0 new messages