Fork forms library
description
Transcript of 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/
O Hai! I’m Yoni
Yoni De Beule, http://www.yonidebeule.be, @yoniweb
I work at Netlash-bSeenamong others.
http://www.netlash.com http://www.minify.be http://www.vlmbuzz.be http://www.wrappp.it
I love building websites.
I love building websites that are beautiful, accessible, easy to use and fast.
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).
Time
Photo: http://www.flickr.com/photos/apoxapox/
Budget
Photo: http://www.flickr.com/photos/stephangeyer/
FANCY FORMSBig budget
Fancy form examples
Fancy forms
Fancy forms
Fancy forms
Awesome if you have the time and budget.
Awesome if you have the time and budget.
UGLY FORMSSmall budget
Ugly forms
http://www.famiweb.be/
http://www.dmoz.org/
Clear lack of time and budget.
Clear lack of time and budget.
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.
Fork forms is a forms library you could have written yourself.
Fork forms is a forms library you could have written yourself.
Major principles
Major principles
Major principles
1. Flexible
Flexible
Major principles
1. Flexible
2. Understandable
Understandable
Major principles
1. Flexible
2. Understandable
HOW TO USEFork forms library
Simple form example
<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)
This may look simple but you can tweak the button layout, focus styles, errors and messages.
Simple form example with class horizontal
<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).
Variable width form example
<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>
Aligning blocks
<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>
Aligning fields
<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>
Oneliner
<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>
formSection
<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>
Now add messages, errors, visible fieldsets, input lists and selects
http://github.com/forkcms/markup-library
http://www.yonidebeule.be
Yoni De Beule, http://www.yonidebeule.be, @yoniweb