11.11.2014 Views

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

Professional Web Design: Techniques and Templates, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Building the Form Row by Row 383<br />

Adding the Options to Select Rows<br />

The Options to Select rows add two more situations a designer may or may not<br />

come across. The first is to include only a section title <strong>and</strong> nothing more in a row.<br />

This is accomplished by merely not including a form field. The second is a little<br />

more involved. It requires two things: (1) define appropriate margins for positioning<br />

in the parent , which, in this case, sets the bottom margin to<br />

20 pixels <strong>and</strong> the left margin to 80 pixels; <strong>and</strong> (2) use a table to lay out the form<br />

fields in columns <strong>and</strong> rows. While the latter could be accomplished with CSS, the<br />

more simple <strong>and</strong> straightforward route is to use a table. The code in Listing 14.10<br />

shows how simple the table needs to be.<br />

Listing 14.10<br />

XHTML <strong>and</strong> CSS Code for Options to Select Row<br />

<br />

Options To Select:<br />

<br />

<br />

<br />

<br />

<br />

<br />

Sample<br />

Text Option 1<br />

<br />

<br />

<br />

<br />

Sample Text Option 2<br />

<br />

<br />

<br />

Sample<br />

Text Option 3<br />

<br />

<br />

<br />

<br />

<br />

<br />

Sample Text Option 4<br />

<br />

Game Developing GWX

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!