VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Change table widths
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - December 12 2004 :  12:27:08  Show Profile  Reply with Quote
Is there an easy way to change out table widths. I am using templatesfor products but something is still blowing out my page. In addition i want to change the add to cart table because it is blowing out my design and checkout section too.



you can view it at http://www.creator.net/inspectionwise/shopdisplayproducts.asp?id=7&cat=Inspection+Wise

Senior Member

United Kingdom
1898 Posts

Posted - December 12 2004 :  13:37:19  Show Profile  Visit devshb's Homepage  Reply with Quote
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)

Simon Barnaby
[email protected]
Web Design, Online Marketing and VPASP addons

Edited by - devshb on December 12 2004 14:00:28
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000