image linking problem

liunx

Guest
Sometimes when I link an image, it also links the image directly below it. For example, on one of my pages I have the graphics logo and below it I have a divider. When I click the link to the graphics site, the divider below it is also clickable to the graphics site. While this isn't a major problem, it does make my site look poorly made. I do make sure to include the tag </A> so I don't know what is up. Any suggestions?<!--content-->can we see a url or some code?<!--content-->If your problem is something like your "features" page, then you seem to be missing many of the closing A tags. There also seems to be a missing space in many of the IMG tags after the ALT property. Your CENTER tags should also be closed closer to their origin points.<br />
<br />
Example...<br />
<br />
This part...<br />
<br />
<CENTER><A href=http://www.htmlforums.com/archive/index.php/"adam.html"><IMG alt="Adam"border=0 height=47 src="htmladam.gif" width=116 ><BR><BR><IMG alt="Coming Soon" border=0 height=47 src="adoptionsbutton.gif" width=116><BR><BR><br />
<br />
Should be fixed to look like this...<br />
<br />
<CENTER><br />
<A href=http://www.htmlforums.com/archive/index.php/"adam.html"><IMG alt="Adam" border="0" height="47" src="htmladam.gif" width="116"></A><br />
<BR><BR><br />
<IMG alt="Coming Soon" border="0" height="47" src=http://www.htmlforums.com/archive/index.php/"adoptionsbutton.gif" width="116"><br />
<BR><BR><br />
</CENTER><br />
<br />
I added a space after "Adam".<br />
I added an ending CENTER tag before the next section starts.<br />
I added an ending A tag to complete the linked image area for this section.<br />
I added quotes areound the width value and took out the space at the end of the IMG tag.<br />
<br />
I had chosen that section of coding because it seemed to portray your current problem. When I clicked on the Adoptions image, I was linked onto the Adam page.<br />
<br />
You could also probably take out most of those CENTER tags too. Just keep one starting CENTER tag near the top of the navigation section and one ending CENTER tag at the end of the navigation section. Anything between them should stay centered for you.<!--content-->Thank you for your response. I do realize my code is not that great, however I am very new to HTML so I am doing good for a beginner (I hope). I'm trying to clean it up little by little. Also, alot of the pages on my site were made using GeoCities PageBuilder and I have not converted them yet. <br />
<br />
:P<!--content-->No worries. Everone was a beginner at one point or another. Take your time, learn the steps, and do well. (And of course head back here if you have questions)<!--content-->
 
Back
Top