using a form with an image link

They have: 89 posts

Joined: Jul 1999

I will try to put this as succinctly as possible.
On the top of my page, I have an image icon for a shopping cart. In order to link it to the 'view shopping cart' page, I have to use form code. I am having a little trouble with this.

What I had to do was put it into a separate td in my table, aligning ONLY the 2nd one right, to keep the three text links and cart all to the right.

But now it looks more 'off' to me. How can I move the black table over off the left size ~ it seems to be too far over and I'm too tired to try to keep dinking with it.

Please help. I'm going out of town for a week to 10 days,
and I've just got a lot on my mind right now. Thanks for
your help and thanks for understanding...

oooh! here's the url: http://knifeDealer.net/_aa/gerber-knives.shtml

Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.

Enter our Monthly Drawing!!

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

generally creates wierd spacing. SO what I do is put it outside of tables.

You have one table that is the 'top' with:
'Knife Traders for Over 20 Years' and the nav on the right
then the logo and more nav.

Put the ouside of that table.

<body leftmargin="5" topmargin="0" marginheight="0" marginwidth="0" TEXT="black" LINK="#A1A1A1" VLINK="#808080">

<FORM METHOD=POST ACTION="http://www.safepay.net/cgi-bin/shop/cart.cgi?">
<table border="0" cellspacing="0" cellpadding="2" width="720">
....
<td bgcolor="white">
      <INPUT TYPE=HIDDEN NAME=merchant VALUE="2kcut">
      <INPUT TYPE=HIDDEN NAME=return VALUE="http://KnifeDealer.net">
      <INPUT TYPE=HIDDEN NAME=purpose VALUE="look">
      <INPUT TYPE=IMAGE SRC="http://knifedealer.net/images/shop_cart.gif" width="31" height="29" NAME="Click here to view your cart or checkout" BORDER=0>
</td>
....
  </TR>
</table>
</FORM>
'

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 89 posts

Joined: Jul 1999

I tried that just now, and it didn't change anything.

What I'd really like help with is giving the td with the black bg a left margin or something. and then making it a little wider, so that it lines up better with the cart, and then the rest of my page.

Hopefully this isn't too difficult, but I've been looking at it too long I think.

Appreciate any help....

And, although I can't give you a knife, I will definitely give you a good deal on one. The person that helps me get this page looking the way I want will get an additional discount.

thanks!

Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.

Enter our Monthly Drawing!!

They have: 429 posts

Joined: Jul 2000

Stupid Netscape! Netscape over there doesn't want to work with me on this, so this only works for IE [I think.]

<!--End Knives Online Discounts Knifes (pulldown/date)-->
   <table border="1" cellpadding="5" style="margin-left:10;">
  <tr><td width="125" valign=top bgcolor="white">
'

Another thing I noticed was this:

<!--End Bottom Text Code-->
<br>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
'

You closed out that table twice. Not good. Oh, and another thing you could do [if you don't want to use CSS for some reason] is this [again, only for IE]:

<!--End Knives Online Discounts Knifes (pulldown/date)-->
   <table border="1" cellpadding="5" hspace="10">
  <tr><td width="125" valign=top bgcolor="white">
'

Mike Fisher - TWF Conquerer
"Don't trust a spiritual leader that cannot dance."

AndyB's picture

They have: 344 posts

Joined: Aug 1999

It's a problem with columns spanning and not, etc. Tested with 'border=1' the problem shows up ... and the page here http://www.centennialcra.com/tiny3.htm does what you want (I think). View source, copy, enjoy Smiling

They have: 89 posts

Joined: Jul 1999

that did it, thanks.

Now, can you tell me ~ since I haven't yet learned
style sheets (I promise I will take the time after I return
from the inlaws in two weeks)....

How can I 'move' everything over off the left edge by say
10-20 pixels?

thanks again....

Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.

Enter our Monthly Drawing!!

They have: 429 posts

Joined: Jul 2000

This only works in IE, again. Netscape is just way behind the times.

EXAMPLE:
<img src="blah.jpg" style="margin-left:10px;">
'

All you need to do is just insert 'style="margin-left:10px;"' into anything, and that'll do it.

Mike Fisher - TWF Conquerer
"Don't trust a spiritual leader that cannot dance."

AndyB's picture

They have: 344 posts

Joined: Aug 1999

cross-browser

Change marginwidth to marginwidth=20 in the BODY Smiling

They have: 89 posts

Joined: Jul 1999

Thanks, guys! Now it's just the way I want it.

Please email me if you're interesting in a *special*
discount on a knife.

Much appreciated! You've SAVED an old girl's sanity here!

hugs!

Military & Combat Knives. Hunting & Fishing Knives. Pocket Knives.
Kitchen Cutlery. Sharpeners.

Enter our Monthly Drawing!!

They have: 429 posts

Joined: Jul 2000

Mommy said I'm not allowed to have sharp objects... ever since 'poochie'...

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.