Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:59
Gap between image and menu
Poster: peggys
Dated: Friday July 21 2006 - 17:57:28 BST
I have 2 different versions of the menu on my site, but the second one is leaving a gap between the menu and image include above it:
http://dev.tsysacquiring.com/company/news.shtm
This is only happening in IE. It is working fine in Firefox.
The first menu I created is working in both browsers and can be seen here:
http://dev.tsysacquiring.com/transactio ... /auth.shtm
I copied the menu and the template for the pages, so I cannot figure out what it is causing the gap with the second menu.
I also tried creating a second menu_data page containing just the company menu, but this did not resolve it either.
Poster: Ruth
Dated: Friday July 21 2006 - 20:43:16 BST
Hi,
I cannot see anything different in the coding, but there is something there, possibly some hidden something. Anyway, I did get it fixed.
I am pasting what I copied here, but it would be better if you took it from your own working page, the one without the space in it so that no extraneous code got put in from the post here. Starting with the comment and going down to and including the break code just after the transprocessing.jpg image, I copied that and pasted it into the page that doesn't work. Then I just changed the name of the transprocessing.jpg to company.jpg. The space is no longer there.
Code:
<!-- horizontal navigation table ends--><!-- main content table -->
<TABLE cellSpacing=0 cellPadding=0 width=756 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR vAlign=top>
<TD width=1 bgColor=#000000><IMG height=1 src="spacer.gif" width=1 border=0></TD>
<TD width=158><IMG height=150
src="transprocessing.jpg" width=158><BR>
<TABLE cellSpacing=0 cellPadding=0 width=756 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR vAlign=top>
<TD width=1 bgColor=#000000><IMG height=1 src="spacer.gif" width=1 border=0></TD>
<TD width=158><IMG height=150
src="transprocessing.jpg" width=158><BR>
As I said there must be some kind of hidden something in the second page since using that part from the first page works, but I cannot find it.
Ruth
Still not working
Poster: peggys
Dated: Friday July 21 2006 - 21:12:40 BST
Hi Ruth,
I did as you instructed, but it's still not working for me.
I noticed you put in a <TBODY> tag. I have never used those, but added it to the main content table (and remembered to end it at the bottom of the page), but that didn't make any difference either.
Any other ideas? I've compared the code a couple times and cannot find any discrepancies.
Thank you for your assistance.
Peggy
Poster: Ruth
Dated: Saturday July 22 2006 - 1:10:16 BST
Hi,
Maybe something in your upload is doing it, I don't know. I've just tried it again and it's working.
[link deleted]
I just uploaded your files after I made that fix. However, I've got everything in that same folder, so if you download the page, you need to change the paths to your files on the page.
Let me know when you get the files so I can remove them.
Ruth
Finally Figured It Out
Poster: peggys
Dated: Monday July 24 2006 - 16:43:09 BST
Hi Ruth,
Thanks for the code, but unfortunately it didn't work for me once I set all the links to relative. I noticed that when I viewed the source of your page that the includes code shows up (not just the reference to the inclue), so that got me to thinking it had to do with the image include that is above the navigation.
I changed out the image include to the authorization and capture image (the section where the nav works) and sure enough, it closed the gap. After looking at my "company" include code, I noticed that there was a line break in the code after the image. I removed it and now it works.
Thank you so much for your help! I have spent WAY too much time on this issue that I am so glad to finally have it resolved!
Regards,
Peggy