Staredit Network

Staredit Network -> Computers and Technical -> HTML being gay
Report, edit, etc...Posted by dumbducky on 2006-06-11 at 21:05:43
I made a forum on invision, and I'm trying to add crap to the footer. The first thing I did was stick the logo. That worked fine. But when I stuck a link in it, it deletes the logo and the space the logo took up. Here's the code.

CODE

<a href="I'm not putting link here">
<img src="http://img471.imageshack.us/img471/6990/logo5rz.jpg"> </a>
<br>


It works fine when the link tag isn't there, but adding it screws it up.
Report, edit, etc...Posted by Mr_Mooo_Cow(U) on 2006-06-12 at 13:47:46
umm try using the image you have + a image map.. wait whats that i hear? google time! "html + image map" gogo
Report, edit, etc...Posted by Gigins on 2006-06-12 at 13:52:22
This code should work. According to XHTML you are supposed to close all tags even empty tags.

CODE
<a href="http://a link/">
<img  src="http://img link/"  />
</a>
<br />
Report, edit, etc...Posted by Centreri on 2006-06-12 at 15:28:35
Well, I'm quite sure major browsers correct that error, and it probably uses regular HTML rather then XHTML. If I knew the full footer code, it would be much easier. I don't know why the above code wouldn't show correctly. Probably someting to do with the rest of the code, or when adding the link you changed the address to image. I would also put the logo in a <div> so even if the logo wasn't there, the space would be.
Report, edit, etc...Posted by RexyRex on 2006-06-12 at 22:48:09
CODE
<a href="#"><img src="path/to/image.png" /></a>
Report, edit, etc...Posted by lonely_duck on 2006-06-13 at 14:44:52
The only conclusion I can find is that your trying to combine two links as one link. What I see in your code is:
CODE
a href="link"
img src="another link"</a>


Since you won't show the first link I'm guessing its different than the image link which will make the link inoperable, and don't show in your page.

Unless you saved the dumbducky picture to a file in your computer you need to seperate those codes as:
CODE
a href="link"</a>
img src="other link"


Report, edit, etc...Posted by Pie_Sniper on 2006-06-13 at 19:22:42
No; the second is not a link. src=... is the URL of the image he is trying to display. Only <a> tags can create links (to my knowledge, or at least as far as I remember).
Report, edit, etc...Posted by lonely_duck on 2006-06-13 at 19:36:30
hmm, your right, but I was able to reproduce his problem. I'm just not sure how anymore I'll tinker with some things for awhile.
Next Page (1)