SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist
    Join Date
    Nov 2003
    Location
    England
    Posts
    540
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Splitting a div into 3 equal columns?

    Hey all,

    I cannot figure out how to split a div into 3 equal columns, this isn't a website structure, I just have a form that im trying to layout, I tried using floats but they go below eachother

    Is everyone else who is trying to produce tableless layouts not using tables for forms? I figure id use tables for tabular data, but not layout. Im not sure where a form stands in this..

    Any help on splitting the div?

    Thanks,
    Matt.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by matt-
    Is everyone else who is trying to produce tableless layouts not using tables for forms? I figure id use tables for tabular data, but not layout. Im not sure where a form stands in this..
    Most of the time a form can be done without tables. However, I feel that forms are one of those "grey areas" where it can still be OK to use a table. Others may disagree with me, but that's my take on it.

  3. #3
    Beer Monster -Ox's Avatar
    Join Date
    Apr 2003
    Location
    sowth afreeka
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree, use a table where a table needs to be used, can you imagine trying to create a calendar with divs

    tables are good to use for form layouts you have much more control with them, that's for sure.
    My postings are a natural product.
    The slight variations in spelling and grammar enhance its
    individual character and beauty and in no way are to be
    considered flaws or defects - http://www.guinnesspig.net

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,788
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    I'd go with whatever you find easiest. Forms can be awkward to style in css (although not impossible) but as forms usually have a logical structure then tables can be used in those circumstances.

    Paul

  5. #5
    SitePoint Member Suzy's Avatar
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I'm still undecided..

    I don't consider an actual form to be tabular data.. what it produces well that's different but I assume then you take the info and tabularise it?

    It's not difficult to CSS a form. Take the big "discovery" in the past was to style navigation menus using unordered lists. The same proncipal could apply to forms

    only this time use the elements that are built for the job

    <fieldset>
    <legend>
    <label>

    you the have the same number of element that a table can give you, but you have the usability of a FORM?

    but I live to be persuaded otherwise

    I think that forms are where it's very often easier to use a table becasue Forms have always been typically lad out in grids, but if you are to use a table and still try to keep it "semantically" correct how are you going to associate one column with another, when label does the job by it's very nature?

    don't ya just love these choices

    Suzy

  6. #6
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,788
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by suzy
    don't ya just love these choices
    Thats what makes the world go around


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •