52
FORMS Fork forms library Presentation about the Fork forms library http://github.com/forkcms/markup-library/ Photo: http://www.flickr.com/photos/cubagallery/

Fork forms library

  • Upload
    yoniweb

  • View
    1.974

  • Download
    0

Embed Size (px)

DESCRIPTION

Introduction to using the Fork forms library http://github.com/forkcms/markup-library

Citation preview

Page 1: Fork forms library

FORMSFork forms library

Presentation about the Fork forms library http://github.com/forkcms/markup-library/Photo: http://www.flickr.com/photos/cubagallery/

Page 2: Fork forms library

O Hai! I’m Yoni

Yoni De Beule, http://www.yonidebeule.be, @yoniweb

Page 3: Fork forms library

I work at Netlash-bSeenamong others.

http://www.netlash.com http://www.minify.be http://www.vlmbuzz.be http://www.wrappp.it

Page 4: Fork forms library

I love building websites.

I love building websites that are beautiful, accessible, easy to use and fast.

Page 5: Fork forms library

I love building the best possible websites within the project specific time and budget.

I love building the best possible websites within the project specific time and budget (they should always be beautiful, accessible, easy to use and fast).

Page 6: Fork forms library

Time

Photo: http://www.flickr.com/photos/apoxapox/

Page 7: Fork forms library

Budget

Photo: http://www.flickr.com/photos/stephangeyer/

Page 8: Fork forms library

FANCY FORMSBig budget

Fancy form examples

Page 9: Fork forms library

Fancy forms

Page 10: Fork forms library

Fancy forms

Page 11: Fork forms library

Fancy forms

Page 12: Fork forms library

Awesome if you have the time and budget.

Awesome if you have the time and budget.

Page 13: Fork forms library

UGLY FORMSSmall budget

Ugly forms

Page 14: Fork forms library
Page 15: Fork forms library

http://www.famiweb.be/

Page 16: Fork forms library

http://www.dmoz.org/

Page 17: Fork forms library

Clear lack of time and budget.

Clear lack of time and budget.

Page 18: Fork forms library

FORK FORMSFork forms library

Fork forms is a lightweight html/css library that allows you to build complex forms in very little time. Fork forms degrades nicely to IE6, IE7 and IE8 and is tested in IE6, IE7, IE8, Firefox 2, Firefox 3, Safari, Opera and Chrome. Forms is build to allow you to spend more time and budget on other aspects of your site.

Page 19: Fork forms library

Fork forms is a forms library you could have written yourself.

Fork forms is a forms library you could have written yourself.

Page 20: Fork forms library

Major principles

Major principles

Page 21: Fork forms library

Major principles

1. Flexible

Flexible

Page 22: Fork forms library

Major principles

1. Flexible

2. Understandable

Understandable

Page 23: Fork forms library

Major principles

1. Flexible

2. Understandable

Page 24: Fork forms library

HOW TO USEFork forms library

Page 25: Fork forms library

Simple form example

Page 26: Fork forms library

<form> <p> <label>Name</label> <input type="text" class="inputText" /> </p> </p> <label>Message</label> <textarea></textarea> </p> <p> <input type="submit" class="inputSubmit" value="Send" /> </p></form>

Compromises have been made to make the code fit the screen (missing fieldset, label and input on the same line, ect)

Page 27: Fork forms library

This may look simple but you can tweak the button layout, focus styles, errors and messages.

Page 28: Fork forms library

Simple form example with class horizontal

Page 29: Fork forms library

<form class= "horizontal" > <p> <label>Name</label> <input type="text" class="inputText" /> </p> </p> <label>Message</label> <textarea></textarea> </p> <p> <input type="submit" class="inputSubmit" value="Send" /> </p></form>

You can add horizontal to any wrapper (div, fieldset or form).

Page 30: Fork forms library
Page 31: Fork forms library

Variable width form example

Page 32: Fork forms library

<form> <p class="tinyInput" > <label>Tiny</label> <input type="text" class="inputText" /> </p> <p class="smallInput" > <label>Small</label> <input type="text" class="inputText" /> </p> <p class="defaultInput" > <label>Normal</label> <input type="text" class="inputText" /> </p> <p class="mediumInput" > <label>Medium</label> <input type="text" class="inputText" /> </p> <p class="bigInput" > <label>Big</label> <input type="text" class="inputText" /> </p></form>

Page 33: Fork forms library
Page 34: Fork forms library

Aligning blocks

Page 35: Fork forms library

<form> <p class="bigInput" > <label>Address</label> <input type="text" class="inputText" /> </p> <div class="alignBlocks"> <p> <label>City</label> <input type="text" class="inputText" /> </p> <p class="smallInput"> <label>State</label> <input type="text" class="inputText" /> </p> <p class="smallInput"> <label>Zip</label> <input type="text" class="inputText" /> </p> </div></form>

Page 36: Fork forms library
Page 37: Fork forms library

Aligning fields

Page 38: Fork forms library

<form> <div class="alignFields"> <p> <label>City and ZIP code</label> <input type="text" class="inputText" /> </p> <p class="smallInput" > <input type="text" class="inputText" /> </p> </div></form>

Page 39: Fork forms library
Page 40: Fork forms library

Oneliner

Page 41: Fork forms library

<form> <div class="oneLiner"> <p> <label>City and ZIP code</label> <input type="text" class="inputText" /> </p> <p class="smallInput" > <input type="text" class="inputText" /> </p> <p> <input type="submit" class="inputSubmit" value="Send" /> </p> </div></form>

Page 42: Fork forms library
Page 43: Fork forms library

formSection

Page 44: Fork forms library

<form> <div class="formSection"> <p class="label" >Properties</p> <div class="formSectionContent"> <div class="alignBlocks">...</div> <div class="alignBlocks">...</div> <div class="alignBlocks">...</div> <p> <input type="submit" class="inputSubmit" value="Send" /> </p> </div> </div></form>

Page 45: Fork forms library
Page 46: Fork forms library

Now add messages, errors, visible fieldsets, input lists and selects

Page 47: Fork forms library
Page 48: Fork forms library
Page 49: Fork forms library
Page 52: Fork forms library

http://www.yonidebeule.be

Yoni De Beule, http://www.yonidebeule.be, @yoniweb