Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I can't figure out how to configure my html tables in php!!


saxman513

Recommended Posts

:tellme: :cry:

Hello All! I've been here for about 2 weeks soaking in all the incredible info you guys have posted (just plain awesome!!) and deciding on my layout and configs, now I'm starting to build my site. Im almost done, but I'm having one problem. I had the hardest time making all the tables in header and footer line up, but I finally got it! But now I can't make my site fit into 800 width. It goes from like 971 and auto stretches from there out. I want the left side to stay stationary (as it does now) and the right side to autostretch. Like I said it's working fine, but I just need it to start at at least 800px. I used the centershop contr. to center, then modified the code to fit my needs. I've been at it for 5 or 6 hrs! Someone please help me!!

 

here's the link:

http://www.sweetnothingssugarfreeshoppe.co...hop/default.php

 

Thanks alot for the help you all will give, and for all the invaluable help you've already given through tis forum! :)

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

to my mind the problem you are having is that white line just right above burgundy line with Top->Catalog links.

 

your the white line is actually two images 1: images/template_r2_c2.jpg and 2: images/template_r2_c3.jpg with widths of 445 and 493 respectively. that makes up for 938 pixels. That's why it goes beyond 800 pixels

 

Remove one of these or use them as backgropund images for those table cells.

Link to comment
Share on other sites

:shock: :shock: :shock: :shock: :shock:

Thanks for your help! I tried the validator which is an awesome tool. I found some problems, but it didn't remedy my problem. The second suggestion about the two bar pictures, the first is around 3-400px and the second is strched and I cropped it to 100 for testing and did not work. So in total that bar would be less than the 800px im shooting for. The problems seem to be in the burgundy nav bar. I just want the "t" in checkout to always be inside the scroll bar. At least inside the 640px window. also the inside box autostretches after a certain point, but not under 800. So it seems that something is setting the width beyond 800, and not allowing the auto stretch to shrink any smaller. But I cant find it! I looked in header, footer, and default.php!?!?

Please, could someone look at the source and see if you can figure it out. Thanks!! Id be forever greatful. :wink:

 

Also if someone could tell me how to autorepeat that bar pic instead of stretching it that would be great!

 

here's the link again:

 

http://sweetnothingssugarfreeshoppe.com/sh...hop/default.php

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

it still shows the widths of both of the images i metioned as 445 and 493.

 

Did you upload the cropped image?

 

The burgundy bar is not the problem - it's setting is 100%.

Link to comment
Share on other sites

here is the thing - you specified the with of template_r2_c3.jpg as 100% - you cannot do that. Image length can only be specified as pixel number ie width=100 not width=100%

Link to comment
Share on other sites

Sorry I just cropped and used it to test offline. The new image is there now. It's 40px width. How do I get it to auto repeat? I tried setting the pics at the original width instead of 100% and it still will not shrink nav bar to the size of pics which is less than 800px. Am I doing something wrong?

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

you still have the width at 100% which does not work.

<td width="100%" height="2" valign="top" bgcolor="#91003F">

   <img border="0" src="images/template_r2_c3.jpg" width="100%" height="25" alt=""></td>

To make it repeat you have to set it as a background picture for that particular cell.

<td width="100%" height="2" valign="top" bgcolor="#91003F" background="images/template_r2_c3.jpg"> </td>

Link to comment
Share on other sites

Alright!! your last post solved the strechy pic problem,

To make it repeat you have to set it as a background picture for that particular cell. Code:

 

<td width="100%" height="2" valign="top" bgcolor="#91003F" background="images/template_r2_c3.jpg"> </td>

 

but now the page seems to have an even wider width than before!?! Everything is set to 100% I think, and I can't figure out what's making the tables so large!

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

Thanks for the advice! The bar is now two pics in two different cells. the first is around 500px and the second is around 40px repeated. So that is working great, but the shop still will not fit in 800px! Apparently something is restricting the table from shrinking below that, but I can't find it! Please Help!

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

Do a search on Center Shop

 

I have posted the code to do this and it will pull your shop into a 750 table.

 

The table, and I believe I have 3 on this one, really are setup where the beginning of the tables are in header.php and the end in footer.php

 

If you fool with the color settings, you can get the whole thing just like you have now.

 

What is stopping the sizing is the logo at 652px.

 

Doing a slice and dice on it is the best way to get it to fit right.

 

Your bar images at 40px repeating is much better than a large one.

Link to comment
Share on other sites

Thanks Linda, You have no idea how much your hundreds of posts and contributions, along with the other great people on here, have already helped me!

 

Do a search on Center Shop

 

This is actually what I used to get it where it is now. I then wrapped the whole thing in a new table to get the corner graphic in there. I'll try to hack up that logo a bit and see if that fixes it!

 

Thanks! :D

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

Well... :cry: I tried to crop the logo pic, but to no avail. I left the graphic raw without the fade so you can see where it ends. It's no where close to where the nav bar is stopping. I really dont know what to do here? can you see what I'm missing?

 

www.sweetnothingssugarfreeshoppe.com/shop/default.php

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

Hey Linda! I fixed it! What was happening was that i removed the right info boxes and commented the whole right_column.php file out, but in default.php, the table that held them was still there and was being set to the size of echo BOX_WIDTH! So, I commented out that table, and BAM! It works! You have been a tremendous help. Thanks for sticking with me! :lol: <---NEWBIE

 

Try it out!

 

http://sweetnothingssugarfreeshoppe.com/sh...hop/default.php

 

Oh yeah,

Also, do you have to use the 500px bar? Won't the 40px work there?

 

I wanted the page to look "integrated" so i needed to get that nav right up next to the heart with the glow on it. the glow and shadow covers the first 20-30px of the bar, so it has to be cut there to get the menu that close. But it can be much shorter than 500px. Thanks for the tip!

 

Oh, everyone reading this remember to comment out or delete the table in default.php that holds the left/right columns if you're getting rid one! It could save you hours! :bigups:

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

well, with all the help, I was able to get everything up... so I thought. All pages are working correctly except create_account.php and account.php. They just aren't auto stretching like the other pages. I think that must be in those files only because header/footer work great on the other pages.they are similar in style and form, but I can't figure out what's causing the problem. I'm sure a fix in one will fix the other as well. Here's the address for account.php:

 

http://sweetnothingssugarfreeshoppe.com/sh...hop/account.php

 

Thanks

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

:lol: sorry. I should probably send you to:

 

http://sweetnothingssugarfreeshoppe.com/sh...ate_account.php

 

instead of the last one. because that on would've required signing up. This way you can see what I mean easily!

 

Thanks

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

well for starters, your tables are not being closed correctly on all pages near the footer:

 

            </table>

</table>

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites

can you ba a little more specific as to where? I've tried a couple of those online tag checkers and html kit but I just cant identify the problem! :?

:listen: Musik Makin' Makes Me Mappy. . . I mean, Happy! :listen:

****Play that sax-a-ma-phone! - Homer J. Simpson****

Link to comment
Share on other sites

Use either CSE's HTML Validator lite or something with access to HTML Tidy (like TopStyle or UltraEdit) and they will point out the errors for you.

 

Your life will be much easier. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...