X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Can't get rid of space on page (https://forum.x-cart.com/showthread.php?t=25541)

bgumpper 10-04-2006 07:41 PM

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.

dalmuti 10-04-2006 08:01 PM

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

bgumpper 10-04-2006 08:09 PM

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

bgumpper 10-04-2006 08:20 PM

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.


All times are GMT -8. The time now is 04:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.