Results 1 to 8 of 8

Thread: div vs tables for large e-site

  1. #1
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default div vs tables for large e-site

    I am going to propose a redesign for the first page of an e-site -The original is done all in tables. I have been working in divs now for some time but not so much on e-sites with complicated -often crowded layout.

    is there a more practical reason for doing them with tables? I find it easier to work in divs because I can reposition them more easily.

    Is it just older code? or did someone do it this way because it's better for any given reason?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Tables should never be used for layout and design, they should only be used for tabular data.

    To learn more about this, I would recommend this nice article: http://www.hotdesign.com/seybold/everything.html

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    evan (03-26-2009)

  4. #3
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default in defense of tables?

    OK ...
    so tables are pretty much obsolete unless we are working with forms.

    So why are people still using them?

    I DID notice one advantage is that tables expand to content, content in divs sometimes gets compressed in a bad way any tips?

  5. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    You can use %s for divs and it will expand. Tables should be used only for data.

  6. The Following User Says Thank You to bluewalrus For This Useful Post:

    evan (03-26-2009)

  7. #5
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default how?

    I haven't tried that before how does that work?

  8. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I'm not a good describe but this guy might be http://www.maxdesign.com.au/presentation/liquid/

    EDIT

    to be more exact your looking for liquid layout out demo file is this one http://www.maxdesign.com.au/presenta.../example01.htm

  9. The Following User Says Thank You to bluewalrus For This Useful Post:

    evan (03-26-2009)

  10. #7
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default This fully explains horzontal liquid but what about verticle

    For a cool layout I see the need for liquid as it applies to horizonal.

    The site I am improving on is a big e- site. It was coded with MANY tables.

    I can do alot of the layout in divs and clean up the code.

    It makes sense in one way:

    As with many e-sites, products and content will be populated and page so page heights will vary. So in that case tables made sense. Is there a cleaner way?

  11. #8
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

Tags for this Thread

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
  •