Posted - December 12 2004 : 13:37:19
| shop$colors.asp has most of the table/column widths; just do a text search for "width" within that file and you should catch most of them, especially the cart table settings.
For ours, we basically took out all the widths completely from shop$colors.asp as we just use the higher-level site/panel tables instead, as all the sub-tables within the system will then adjust properly if they're left with blank/default widths.
ie we start with the highest level tables (entire browser/site) and then work inwards; the more inwards you go, the less you should need to specify the widths/heights (apart from things like login mini-forms which you might want to give fixed-point widths). Ideally once you get inwards to a certain point, you should no longer need to specify any widths as that'd just squish your tables needlessly in lots of instances; the my-account table/screen is a classic example of that, as it often gets very squished by default if your higher levels tables are set normally, whereas if you leave that table width blank then it'll sort itself out regardless of what's going on in all the surrounding panels.
(but make sure you backup your shop$colors.asp file before doing that!)
Having said all that, in some instances your content for a given page might force a page to be wider than the higher-level table if the content within it can't be shrunk down any more by the browser because there's a minimum physical width that it'd take up given the values that are being shown; this is what's happening on your checkout screen; you'd need to move the shipping form below the customer form, or shrink the fields to make the page fit in, widen the overall page, or decrease the margins.
I'm all for avoiding specifying widths/heights wherever possible, because that's the best way to show things in browsers of various sizes; really you should only need to specify margins, and top-level tables/columns for the panels; everything else should really be automatic/blank.
It's the high-level tables which are the really nasty thing; once you've got those right the rest of your site will always fall into place (see also the notes mentioned on our panel-splitter: http://bigyellowzone.com/shopexd.asp?id=26)
Web Design, Online Marketing and VPASP addons
Edited by - devshb on December 12 2004 14:00:28