Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can I move the left column down a bit?


twirlerzmom

Recommended Posts

My left and right columns don't match up. The left is up almost directly under the header. The right is down further than that. How would I match them up so they line up with each other?

 

Thanks,

 

It's hard to say without a visual of the problem. Why don't you post a link and maybe someone will be able to offer advice.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Somewhere in the catalog/index.php file you'll see something along the lines of...

<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->

There will be a corresponding section for the right side. Fiddle with the table settings right above those lines. Might even be a

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

stuck in there right above the column calls. Play with the 10 number or remove the line completely. Just remember to make a copy of the original file and store it somewhere before you mess around with it too much, incase you kill something off ya really really needed.

Link to comment
Share on other sites

Somewhere in the catalog/index.php file you'll see something along the lines of...

<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->

There will be a corresponding section for the right side. Fiddle with the table settings right above those lines. Might even be a

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

stuck in there right above the column calls. Play with the 10 number or remove the line completely. Just remember to make a copy of the original file and store it somewhere before you mess around with it too much, incase you kill something off ya really really needed.

Thank you I'll try that but in the meantime here is a link to the specific page that I'm talking about. Notice not only does the left not line up with the right but the footer bar extends all the way to the right but not to the left so that's a little whacked up too.

 

http://whipperscrapper.netfirms.com/store/...talog/index.php

Link to comment
Share on other sites

Thank you I'll try that but in the meantime here is a link to the specific page that I'm talking about. Notice not only does the left not line up with the right but the footer bar extends all the way to the right but not to the left so that's a little whacked up too.

 

http://whipperscrapper.netfirms.com/store/...talog/index.php

 

Your problem is coming from some mis-matched tags. In other words you missing a </td> or </tr>, or have an extra one somewhere. Its somewhere inside the main cell area, and I suspect that it's involving the main page text "Come on in and browse the shelves of our ......." There are some odd out of place things going on there, like its starts a <td> tag which contains the main text then has a couple of <br><br> tags then begins a <table> tag.

 

Sorry I couldn't trace it down any further. I would take a look at your include/languages/english/index.php file and look at the TEXT_MAIN define. I suspect something is out of whack there.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Thank you I'll try that but in the meantime here is a link to the specific page that I'm talking about. Notice not only does the left not line up with the right but the footer bar extends all the way to the right but not to the left so that's a little whacked up too.

 

http://whipperscrapper.netfirms.com/store/...talog/index.php

I tried both suggestions: playing with the number 10, and looking for the mis-matched tags. I deleted the extra tags that weren't needed and it didn't change the alignment any. I then started playing with the number 10 in the catalog/index but that didn't change anything either. Does anyone else have some suggestions? I have to fix that, it looks ridiculous :blush:

Link to comment
Share on other sites

I tried both suggestions: playing with the number 10, and looking for the mis-matched tags. I deleted the extra tags that weren't needed and it didn't change the alignment any. I then started playing with the number 10 in the catalog/index but that didn't change anything either. Does anyone else have some suggestions? I have to fix that, it looks ridiculous :blush:

 

I expect that its going to take a bit of effort to really dig in and find the problem. Perhaps I should have explained a little more in my previous post. I downloaded your page and loaded it into Dreamweaver. Inside Dreamweaver if there are some issues with HTML code, basically things being out of sync nothing will display when you go to the visual tab. With the code for your page, the header displays and the left column displays, nothing else does.

 

So the next thing I did was to change the border width of all the tables to 3 so they would be easy to see. I've found this helps because you are able to see exactly where the tables start and end. Then I opened the file in a browser. On the right column above where the definition for the column begins there is an empty space, that gave me another clue there was something awry with the either a <TD> or <TR> tag.

 

So then I went back into Dreamweaver and cut out everything between the <TD></TD> tags that makes up the main section of the page. Once I did that the right hand column displayed correctly. So it was obvious the problem was in the main area.

 

I took the code that I had cut from the center of the page and created a new HTML and pasted that as the body section. One by one I cut out the product rows being care to grab complete table sections, all of that code appears correct as everything matched up as it should. I got all the way down to the main page text. Once there I found several mismatched tags and in general things were out of order and where I became stumped.

 

I would be interested to hear what you eventually find out, but I am better it has something to do with that particular main text section.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

I expect that its going to take a bit of effort to really dig in and find the problem. Perhaps I should have explained a little more in my previous post. I downloaded your page and loaded it into Dreamweaver. Inside Dreamweaver if there are some issues with HTML code, basically things being out of sync nothing will display when you go to the visual tab. With the code for your page, the header displays and the left column displays, nothing else does.

 

So the next thing I did was to change the border width of all the tables to 3 so they would be easy to see. I've found this helps because you are able to see exactly where the tables start and end. Then I opened the file in a browser. On the right column above where the definition for the column begins there is an empty space, that gave me another clue there was something awry with the either a <TD> or <TR> tag.

 

So then I went back into Dreamweaver and cut out everything between the <TD></TD> tags that makes up the main section of the page. Once I did that the right hand column displayed correctly. So it was obvious the problem was in the main area.

 

I took the code that I had cut from the center of the page and created a new HTML and pasted that as the body section. One by one I cut out the product rows being care to grab complete table sections, all of that code appears correct as everything matched up as it should. I got all the way down to the main page text. Once there I found several mismatched tags and in general things were out of order and where I became stumped.

 

I would be interested to hear what you eventually find out, but I am better it has something to do with that particular main text section.

 

Be well,

Tina

hmmmm I wonder what the heck I did? I'll have to take a look at it tomorrow. I have Dreamweaver so I'll try your technique once. Thanks for trying Tina. At least I got pointed in the right direction.

Link to comment
Share on other sites

hmmmm I wonder what the heck I did? I'll have to take a look at it tomorrow. I have Dreamweaver so I'll try your technique once. Thanks for trying Tina. At least I got pointed in the right direction.

Tina, am I supposed to be editing the catalog/index.php or the languages/english/index.php file? I did copy the catalog/index into Dreamweaver as you said and I could see the left, right and main body sections but nothing displays if I load the languages/english/index file in dreamweaver.

 

I'm going to have to call it a night but I would appreciate any help you could give me for tomorrow. Thanks so much.

 

Jan

Link to comment
Share on other sites

Tina, am I supposed to be editing the catalog/index.php or the languages/english/index.php file? I did copy the catalog/index into Dreamweaver as you said and I could see the left, right and main body sections but nothing displays if I load the languages/english/index file in dreamweaver.

 

I'm going to have to call it a night but I would appreciate any help you could give me for tomorrow. Thanks so much.

 

Jan

 

I would start by looking at languages/english/index.php since that appears to be close to where the error might be occuring. I know how frustrating problems like this can be. What I would try to do is edit the TEXT_MAIN define, save off the text you have now and replace it with something simple like "test" or something. If you do and the page appears correctly, you know for sure its that causing the problem. If it still is not displaying correctly then start looking at the code inside the main page. Change things in small steps and be sure you have a backup as you go.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Jan,

I think it's in the catalog/index.php. I get the following under the HTML output.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
</tr>
<tr>
<td class="main">Test!
<table border="0" width="100%" cellspacing="5" cellpadding="2"></td>
</tr>
<tr>

Look for the } else { // default page comment and check there. This is what I've got.

		<td><table border="0" width="600px" cellspacing="0" cellpadding="5">
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>

 

I think an errant <TABLE> line was stuck in your code. IF its not there, then it would be at the bottom of the TEXT MAIN area in your english/index.php page.

Link to comment
Share on other sites

Jan,

I think it's in the catalog/index.php. I get the following under the HTML output.

<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
</tr>
<tr>
<td class="main">Test!
<table border="0" width="100%" cellspacing="5" cellpadding="2"></td>
</tr>
<tr>

Look for the } else { // default page comment and check there. This is what I've got.

		<td><table border="0" width="600px" cellspacing="0" cellpadding="5">
	  <tr>
		<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>

 

I think an errant <TABLE> line was stuck in your code. IF its not there, then it would be at the bottom of the TEXT MAIN area in your english/index.php page.

Thank you I will look there as soon as I get home. I really appreciate everyone's help!

 

Jan

Link to comment
Share on other sites

Thank you I will look there as soon as I get home. I really appreciate everyone's help!

 

Jan

Just an update: I was able to correct the problem. I really have no idea where the error was though. I just copied and pasted the code for the languages/english/index.php from the original OS file into my file and it put everything back in it's proper place.

 

Thanks to everyone who tried to help me!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...