Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Location
    Ukraine, CK
    Posts
    27
    Plugin Contributions
    3

    Default Question about Column Layout Grid

    Why does the Column Layout Grid for Product Listing uses "DIV" tag to measure products? Why did not drbyte (there's his name in the header of tpl_columnar_display.php) use the "TABLE" for this purpose?
    Is "div" just a preferred tag, or there are some logical reasons to use it?

    This question appeared with issue to add some free space between products on products listing page after installing "product listing pages with column layout grid" contribution using "margin" or "padding" in CSS. I thought, it could be easily done if there was a table instead of div.
    The other issue was to make border on every product "box". Every div tag has it's own height, so it's possible to just add "border" in CSS for it.

  2. #2
    Join Date
    Oct 2006
    Location
    Grimsby UK
    Posts
    98
    Plugin Contributions
    0

    Default Re: Question about Column Layout Grid

    Hi

    I don't presume to know the opinon of drbyte, he is a well respected and experienced member of the development team, but I would always use <div> tags wherever possible because:
    1) tables are slower to render - you can often (especially on Dreamweaver template sites) see the page being built and aligning!
    2) tables are unneccesarily difficult to style using a stylesheet when a div id and class are just so much more efficient
    3) The move away fom tables wherever possible appears to be an ideolgy underpinning the Zen cart Project (and is one that I personally applaud.)

    I know why some would prefer to use tables, and Zencart still uses them for certian aspects of the layout, because of browser issues. But we should not let a badly implemented browser like IE6(66) dictate our coding styles.

    all the best

    David

 

 

Similar Threads

  1. about Column Layout Grid for Product Listing
    By win8win in forum General Questions
    Replies: 3
    Last Post: 30 Jul 2016, 08:19 PM
  2. column grid layout question
    By julia44 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 May 2007, 05:53 PM
  3. Question about column grid mod
    By bjraines in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 May 2007, 12:03 PM
  4. Column Grid Layout Question
    By bombknex in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Sep 2006, 02:10 PM
  5. Dr. Byte...about your column layout grid for 1.3...
    By digidiva-kathy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jul 2006, 08:38 PM

Posting Permissions

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