The only real <table> structure you guys kept with the new template design is the main structure of the tpl_main_page.php file. Is there a reason that this is still table based? Aside from the obvious ease of <table> tags that we all learned when the web first came out, I think the standard is moving far and fast from tables because of their limitations and their weaknesses.
For kicks, I redesigned the Classic template using DIV tags in place of the table/tr/td tags. It took very few changes to the stylesheet and tpl_main_page.php and was quite simple.
I also made sure to keep the global settings and overrides so that it uses the correct width for the main content area if the right or left columns were disabled, and still uses the overrides in the admin area to make the width of navColumnOne and Two wider or thinner based on the inline style tag override.
Benefits of full CSS based design:
- Div blocks load faster. They load one by one whereas Table has to load everything before displaying the contents. Large tables = sloow delays, even with optimized images.
- Remove limitations on design
- Not stuck to basic 2 or 3-column structures
- Layout can be completely redesigned via CSS files alone
- DIV Blocks can be positioned anywhere giving extreme design possibilities
- No more left column right column mindset, now you can move columns where you want them and how you want them.
- DIV Blocks can work with Javascript for hiding and showing information dynamically.
- DIV Blocks can be floated to quickly change sides.
- DIV Blocks and positioning are cross-browser supported (occasional IE hack needed but thats to be expected and easily done.)
- DIV Blocks can size well with pages and create liquid or fixed layouts.
I realize that zen-cart does indeed allow you to easily make your own template and override the default tpl_main_page.php file, but if there is no good reason to use the table for the main structure, I would suggest that future ZC releases are done with a template_default version of the tpl_main_page.php that uses DIV tags and remove the tables all together.
The caveat would be for people looking to upgrade would need to be sure they use the current tpl_main_page.php file as an override in their own template folder so that when the new one is used, they can take their time to port it to div based.
The main goal would be to see some more creatively designed sites and templates out there, as many of them tend to stick with the outer table structure, potentially limiting their creativity.




