| 10:23 am on May 10, 2003 (gmt 0)|
When you write code like this..
<a href=""><img class="imgLeft" src=".." alt="" />
It is interpreted (correctly IMHO) as a link around a image followed by a space.
<a href=""><img class="imgLeft" src=".." alt="" /></a>
and see if that helps.
| 10:37 am on May 10, 2003 (gmt 0)|
Thanks Graham, Looking at your post it was hard to determine exactly what you meant, I guess you put an extra space after the / and before the close >.
I tried that and it made no difference. Thanks anyway.
| 10:43 am on May 10, 2003 (gmt 0)|
No, I meant </a> tag has to appear immediately after the <img> tag. If you put it on a new line then the browser will interpret this as a space.
| 10:51 am on May 10, 2003 (gmt 0)|
Thanks Graham, that worked just fine.
This raises another question, if you dont't mind. Do any other tags have interpretations like this that I should know about. This sort of stuff can waste a lot of time for a newcomer like me. I do not like to reinvent the wheel, I prefer to study it and learn from it.
| 11:02 am on May 10, 2003 (gmt 0)|
Yup - the same thing goes for pretty much any tag. Whitespace is not ignored in HTML, instead it is treated as a single space character (depending on the browser).
So for example..
Will cause a space between the images, to get rid of it they must be on the same line, right after each other.
| 11:22 am on May 10, 2003 (gmt 0)|
Thanks again, the trees are starting to become visible in the forest. I will pay more attention to how I format things in future. I generally try to keep it neat and tidy and do not like to scroll l&r so I guess I will have to learn.
| 11:33 am on May 10, 2003 (gmt 0)|
Yeah nicely laid out HTML is definitely a good thing. :)
But it also needs to reflect what you actually mean, so if you want two images right after each other, then thats what you have to have in your code.