View Single Post
  #4  
Old 08-12-2004, 04:21 PM
 
Adian009 Adian009 is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Tiverton, RI, USA
Posts: 37
 

Default

Quote:
Originally Posted by adpboss
Please post some of your code for us. Inevitably Newbs will have questions.

Sure, I will post some code from my HOME.TPL - not a problemo. I wish I could do this to every table on my site, because the performance is really noticeable - but unfortunately, there are some columns that you just can't restrict the size of.

/SKIN1/CUSTOMER/HOME.TPL Change:

The italicized text is from the original file:


<table border=0 width="100%" cellpadding=0 cellspacing=0 align="center">
<tr>
<td width=6></td>
<td width=150 valign=top>


my changed file has:

<table border=0 cellpadding=0 cellspacing=0 align="center" style="table-layout:fixed;">
<col width="9">
<col width="160">
<col width="10">
<col>
<col width="10">

Notice that the next to the last column I don't have the width for - that is acceptable and you will benefit because the browser will use the remaining space.

I really hope this helps some folks out there!

--al
__________________
---------------------------------------------
Infosolv, LLC
A Professional Services Company
X-Cart v3.5.10 & 4.01
Find our MOD\'s at: Custom X-Cart MOD\'s, Add-On\'s & X-Cart Hosting!
Reply With Quote