Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Can't get rid of space on page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-04-2006, 07:41 PM
 
bgumpper bgumpper is offline
 

eXpert
  
Join Date: Aug 2004
Posts: 209
 

Default Can't get rid of space on page

I am trying to add a chart to a page and I am getting a large space before it that I can't figure out why it's there. Probably something to do with the HTML code but if anyone can advise please do. Here is the link and code that is being put in the description field in X-Cart.

http://holbren.com/home.php?cat=169

<table border="1" width="50%">
<tr><!-- Row 1 -->
<td>BD = Bead Diameter</td><!-- Col 1 -->
<td>LD = Large Diameter</td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>CD = Cutting Diameter</td><!-- Col 1 -->
<td>OL = Overall Length</td><!-- Col 2 -->
</tr>
<tr><!-- Row 3 -->
<td>CH = Cutter Height</td><!-- Col 1 -->
<td>PL = Point Length</td><!-- Col 2 -->
</tr>
<tr><!-- Row 4 -->
<td>DC = Depth of Cut</td><!-- Col 1 -->
<td>R = Radius</td><!-- Col 2 -->
</tr>
</table><br>
Picture shows style of bit but may not be the exact size of bit you will be getting.
__________________
Version 4.1.7 with mods
Reply With Quote
  #2  
Old 10-04-2006, 08:01 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Re: Can't get rid of space on page

When viewing the source code I see lots of <BR>s

Quote:
<table border="1" width="50%">
<BR> <tr><!-- Row 1 -->
<BR> <td>BD = Bead Diameter</td><!-- Col 1 -->
<BR> <td>LD = Large Diameter</td><!-- Col 2 -->
<BR> </tr>

<BR> <tr><!-- Row 2 -->
<BR> <td>CD = Cutting Diameter</td><!-- Col 1 -->
<BR> <td>OL = Overall Length</td><!-- Col 2 -->
<BR> </tr>
<BR> <tr><!-- Row 3 -->
<BR> <td>CH = Cutter Height</td><!-- Col 1 -->
<BR> <td>PL = Point Length</td><!-- Col 2 -->

<BR> </tr>
<BR> <tr><!-- Row 4 -->
<BR> <td>DC = Depth of Cut</td><!-- Col 1 -->
<BR> <td>R = Radius</td><!-- Col 2 -->
<BR> </tr>
<BR></table><br>

When I view generated source in Firefox:

Quote:
<div style="padding: 5px;">



<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br><table border="1" width="50%">
<tbody><tr><!-- Row 1 -->
<td>BD = Bead Diameter</td><!-- Col 1 -->
<td>LD = Large Diameter</td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>CD = Cutting Diameter</td><!-- Col 1 -->
<td>OL = Overall Length</td><!-- Col 2 -->
</tr>
<tr><!-- Row 3 -->
<td>CH = Cutter Height</td><!-- Col 1 -->
<td>PL = Point Length</td><!-- Col 2 --> </tr>
<tr><!-- Row 4 -->
<td>DC = Depth of Cut</td><!-- Col 1 -->
<td>R = Radius</td><!-- Col 2 -->
</tr>
</tbody></table><br>

So, I would take a look at that code because those <BR>s are causing your problem.

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #3  
Old 10-04-2006, 08:09 PM
 
bgumpper bgumpper is offline
 

eXpert
  
Join Date: Aug 2004
Posts: 209
 

Default Re: Can't get rid of space on page

Thanks Louise. Those BR's are not in the code I am putting in but must be in the template file. Do you know what file generates those pages and where it's located?

Thanks
__________________
Version 4.1.7 with mods
Reply With Quote
  #4  
Old 10-04-2006, 08:20 PM
 
bgumpper bgumpper is offline
 

eXpert
  
Join Date: Aug 2004
Posts: 209
 

Default Re: Can't get rid of space on page

I fixed it. Got rid of every space in the code. Ended up with this.

<table border="1" width="50%"><tr><!-- Row 1 --><td>BD = Bead Diameter</td><!-- Col 1 --><td>LD = Large Diameter</td><!-- Col 2 --></tr><tr><!-- Row 2 --><td>CD = Cutting Diameter</td><!-- Col 1 --><td>OL = Overall Length</td><!-- Col 2 --></tr><tr><!-- Row 3 --><td>CH = Cutter Height</td><!-- Col 1 --><td>PL = Point Length</td><!-- Col 2 --></tr><tr><!-- Row 4 --><td>DC = Depth of Cut</td><!-- Col 1 -->
<td>R = Radius</td><!-- Col 2 --></tr></table>
Picture shows style of bit but may not be the exact size of bit you will be getting.
__________________
Version 4.1.7 with mods
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:48 AM.

   

 
X-Cart forums © 2001-2020