» How create good looking form without table
  • Home
  • About
  • Articles
  • Advertise
  • Contact us
 

 

Mail to: info@aceinfowayindia.com / Call : 91 11 9810018780

  • Article Written 
  • on 24.06.2009
  •  at 05:38 AM
  •  by admin

How create good looking form without table

This tutorial explains how to design a good form using a clean CSS design with only label and input tags to simulate an HTML table structure. You can use all CSS/HTML elements to design your custom form for your web projects:

form-17

Step 1: Create basic HTML structure

<form>           <div class="box">             <h1>Contact Form :</h1>             <label>                <span>Full name</span>                <input type="text" class="input_text" name="name" id="name"/>             </label>              <label>                <span>Email</span>                <input type="text" class="input_text" name="email" id="email"/>             </label>              <label>                 <span>Subject</span>                 <input type="text" class="input_text" name="subject" id="subject"/>             </label>             <label>                 <span>Message</span>                 <textarea class="message" name="feedback" id="feedback"></textarea>                 <input type="button" class="button" value="Submit Form" />             </label>                                  </div>     </form>

Step:2 Create CSS Code

*{ margin:0; padding:0;} body{ font:100% normal Arial, Helvetica, sans-serif; background:#161712;} form,input,select,textarea{margin:0; padding:0; color:#ffffff;} div.box { margin:0 auto; width:500px; background:#222222; position:relative; top:50px; border:1px solid #262626; } div.box h1 { color:#ffffff; font-size:18px; text-transform:uppercase; padding:5px 0 5px 5px; border-bottom:1px solid #161712; border-top:1px solid #161712; } div.box label { width:100%; display: block; background:#1C1C1C; border-top:1px solid #262626; border-bottom:1px solid #161712; padding:10px 0 10px 0; } div.box label span { display: block; color:#bbbbbb; font-size:12px; float:left; width:100px; text-align:right; padding:5px 20px 0 0; } div.box .input_text { padding:10px 10px; width:200px; background:#262626; border-bottom: 1px double #171717; border-top: 1px double #171717; border-left:1px double #333333; border-right:1px double #333333; } div.box .message{ padding:7px 7px; width:350px; background:#262626; border-bottom: 1px double #171717; border-top: 1px double #171717; border-left:1px double #333333; border-right:1px double #333333; overflow:hidden; height:150px; } div.box .button { margin:0 0 10px 0; padding:4px 7px; background:#CC0000; border:0px; position: relative; top:10px; left:382px; width:100px; border-bottom: 1px double #660000; border-top: 1px double #660000; border-left:1px double #FF0033; border-right:1px double #FF0033; }

finaly we are done. We have created a good looking form without table. View Example

Filed under: Css, Tutorials by admin

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: Css ,Tutorials

Related Articles:

if you enjoyed reading this article, please check out other related articles below:

    • Simple Verticale Menu Tutorial
    • Tutorial to create a Beautiful, simple, horizontal CSS menu
    • Pure Css Dropdown Menu Without Using Javascript
    • How to Create Your Own Simple Reset.css File
    • Creating a Image Gallery with Caption
Untitled Document

10 Comments

  1. Best Tips, Resources and Tutorials for making of Creative Forms using CSS | guidesigner.netsays on : July 3rd, 2009 at 7:05 am Said:

    [...] Best Tips, Resources and Tutorials for making of Creative Forms using CSS Friday, July 3, 2009 12:04 Posted in category CSS, Development, Forms, Tutorials No Comments How To Create a Good Looking Form [...]

  2. Echilonsays on : July 14th, 2009 at 7:57 pm Said:

    You’re losing the semantic meaning of the labels though. To me, accessability and semantics come first.

  3. 20 Creative Web Forms For Design Inspiration | Web Design Tutorials | Creating a Website | Learn Adobe Flash, Photoshop and Dreamweaversays on : July 15th, 2009 at 6:16 pm Said:

    [...] to create a good looking form without a table [...]

  4. 20 Creative Web Forms For Design Inspiration : tops-post.comsays on : July 24th, 2009 at 6:27 pm Said:

    [...] to create a good looking form without a table [...]

  5. Praveen Dewangansays on : September 8th, 2009 at 12:23 pm Said:

    This is really awesome example for creating table less structure using div basis.

    I am delighted, i m in fact looking for this sample from long back.

    Thanks Buddy

  6. Web Design Sydneysays on : September 21st, 2009 at 8:14 am Said:

    The main argument for still using tables today stems from bad habits, and complacency. What is often said is that using tables is easier, and that browsers don’t support it.

  7. Stevensays on : September 24th, 2009 at 3:29 am Said:

    This is a wonderfully concise tutorial, given the topic. I do have to agree, though, that your labeling structure loses something in accessibility.

    Why not wrap the tag in the or a rather than the other way around? And, since you already have IDs associated with your inputs, why not use the

    <label for=”">

    attribute?

    You wouldn’t even have to change your CSS significantly, just swap the styles for your styles.

  8. Dansays on : January 8th, 2010 at 9:51 am Said:

    Nice little form.

    I, too agree that semantics have taken a hit here but the result is good. I think a good follow up would be to show how to improve the form with some simple CSS3 styling like box shadows, rather than relying on the harsh borders to acheive the inset effect.
    Dan´s last blog ..Movie Recommendations: January ‘10 Part I My ComLuv Profile

  9. Shamima Sultanasays on : January 24th, 2010 at 5:15 am Said:

    Great …it help me a lot…thanks

  10. Murlusays on : January 31st, 2010 at 9:54 pm Said:

    This tut is absolutely fantastic!

    I was getting so tired of my boss asking me to make forms, getting stuck using tables so this will be a nice breath of fresh air in the designs :) Murlu´s last blog ..How To Find Minimal Techno Tracks For DJing My ComLuv Profile

Submit a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


CommentLuv Enabledshow more
« 30 Big Backgroud websites for Design Inspiration
25 website footer designs, trends and styles »
Untitled Document

    Subscribe

  • Subscribe to our feed
  • Subscribe by email
  • Follow us on Twitter
  • WooThemes - Where there's a Woo, there's a way!
  • DreamTemplate - Web Templates

    • Search

      Untitled Document
  • Calendar

    June 2009
    M T W T F S S
    « May   Jul »
    1234567
    891011121314
    15161718192021
    22232425262728
    2930  
    • Pages

      • Home
      • About
      • Articles
      • Advertise
      • Contact us
    • Categories

    • Css (24)
    • Design / Inspiration (65)
    • Freebies (57)
    • Graphic Design (12)
    • Photoshop (32)
    • Resources (49)
    • Seo (1)
    • Tools (12)
    • Tutorials (42)
    • Typography (6)
    • Web development (6)
    • Wordpress (6)
    • Archives

    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • Recent Posts

    • Css
    • Design / Inspiration
    • Freebies
    • Graphic Design
    • Photoshop
    • Popular Posts

    • How create good looking form without table
    • 5 Steps to Write Better CSS Part II
    • 21 Big, Bold Typography Website Design
    • How to Create Nice Scalable CSS Based Breadcrumbs
    • 20 Stunning Example Of Infographics For Your Inspiration
    • 33 "Hello" Pages Example For Your Inspiration
    • 30 Websites with Maximum Orange
    • Tag cloud

    Css Design Fonts Freebies Graphic Design Graphics Design Icons Inspiration Inspitation Photoshop Resources Tools Tutorials Typography Web development Wordpress

    • Friends

      • Abduzeedo
      • Alist Apart
      • Bittbox
      • CrazyLeaf Design
      • Css Tricks
      • David Walsh
      • Fudgegraphics
      • Fuel Your Creativity
      • Help Developer
      • Instant Shift
      • Line25
      • Mirificampress
      • My Ink Blog
      • Noupe
      • PSDFan
      • PSDtuts
      • Share Brain
      • Six Revisions
      • Spoon Graphics
      • Toxel
      • Vandelay Design
      • We function
      • Web Designer Depot
      • Web Designer Ledger
      • Web designer Wall
      • You The Designer
    • Community News

        • 15 Valentine’s Day Photoshop Tutorials

          Here is a roundup of 15 Photoshop tutorials to draw inspiration from, when designing your own pretty greeting card or wallpaper for your loved one.

          February 8, 2010
        • 36 Awesome Film Noir Movie Posters

          Film noir is a cinematic genre characterized by stylish Hollywood dramas that deal with the big issues of sex, violence and money. The noir world is full of morally dubious crooks, corrupt cops, in…

          February 6, 2010
        • Become A Logo Designer at Logomyway.com

          Need Amazing Custom Designs? LogoMyWay connects clients needing design work such as Custom logo designs, T-shirts designs, Business card designs and more to a thriving community of talented logo de…

          February 5, 2010
        • Showcase of E-Learning Websites for Interactive he…

          We are with something different today, as you seen below according to our title or article “Showcase of E-Learning Websites for Interactive help” this is totally new and too much demanding topi…

          February 4, 2010
        • 25+ Inspirational Tutorials of Valentine’s D…

          Saint Valentine’s Day is a holiday celebrated on February 14 by many people throughout the world. In the English-speaking countries, it is the traditional day on which lovers express their lo…

          February 2, 2010
        • 50+ Beautiful Wallpapers for Make more Romantic th…

          Saint Valentine’s Day is a holiday celebrated on February 14 by many people throughout the world. In the English-speaking countries, it is the traditional day on which lovers express their lo…

          February 1, 2010
        • 25 Ultimate Useful Form Tutorials Using CSS and Ja…

          In this article I just featured many good looking contact forms, so you should know how the contact form is good looking. Now let’s take a look how to create outstanding and beautifully designed …

          February 1, 2010
    • Add News

      You can submit your links below using the form and they will usually be approved within a few hours.






      Loading...

    • Translator

      English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flagTurkish flagHungarian flag
  • SPONSORS

    Check out UPrinting on YouTheDesigner.


    Business Cards Online

    Web Design Blog Directory

.
Untitled Document
Back to top

General

These maybe of some interest
  • About Our Company
  • Testimonials
  • Contact Details
  • Blog
  • Social - Twitter, Flickr

Works

Examples of past projects
  • About Our Company
  • Testimonials
  • Contact Details
  • Blog
  • Social - Twitter, Flickr

Services

This is what where selling today
  • About Our Company
  • Testimonials
  • Contact Details
  • Blog
  • Social - Twitter, Flickr

Contact Details

Want to hire us? get started here...
  • Free Project Assesment
  • Email - info@aceinfowayindia.com
  • Tel: 91 11 9810018780

Copyright © 2009, All Right Reserved, Ace Infoway India                                                      Hire Ace Infoway India for your next design project. View our portfolio.