SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating a product catalog

    Hi.

    IŽd like to know..

    What should I use divs or table to create an online product catalog?

    Which would be the better way?

    Why?

    Thanks.

  2. #2
    SitePoint Member
    Join Date
    Apr 2013
    Location
    Palawan Philippine, But I am not a philippino
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi I normally use table for my web.

    I just try to use div for making table by dreamweaver.

    After test for a while what I found is

    Table is easy to auto adjust wide and height in Dreamweaver, you just drag some margin, but you can't do it in <div>

    for multiple column <table> command seem to be good for me

    Hope this help you.

  3. #3
    SitePoint Addict bronze trophy
    Join Date
    Mar 2013
    Location
    Oneonta, NY
    Posts
    307
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Mpnzep,

    I’m sure you could find use cases for either method but divs are typically more versatile in terms of styling. They are also easier to work with when positioning other elements.

    Here is an interesting post on using divs vs tables,

    http://coding.smashingmagazine.com/2...l-to-div-hell/

    Hope that helps,

    Shawn

  4. #4
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,837
    Mentioned
    114 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by mpnzep View Post
    What should I use divs or table to create an online product catalog?

    Which would be the better way?.
    If you have tabular data that is related through rows and columns, use a table. For anything else, including a grid-like presentation, use appropriate semantic elements, usually DIV or UL/LI. The topic has been discussed extensively here and elsewhere, so why not use the search function and read what we said last time round?


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
  •