Forum Moderators: open
The following code places vertical space between the two gifs:
<img src='pic1.gif' width=50 height=75 border=0>
<br>
<img src='pic2.gif' width=50 height=75 border=0>
The following code is identical to the above except that it was all entered on a single line. It does NOT place vertical space between the two gifs:
<img src='pic1.gif' width=50 height=75 border=0><br><img src='pic2.gif' width=50 height=75 border=0>
I have never read that how you enter text with your text editor should make ANY difference to the appearance of your page. Am I missing something?
Thanks, Peter
For example, if I ut this in my code:
foo
bar
<br>
...that will leave a space between foo and bar, right?
Since images rest on the baseline by default, you will get a small space underneath the image (leaving room for the descenders on letters like pgjq)...
Hope that explains it :)
Now that I understand I see that the same thing of course occurs between a gif and text. This is great... I use gifs for paragraph headings and this will allow me to get rid of that extra white space I always have between the gif and the start of the paragraph text.
I've been coding in HTML for years. Makes me wonder what else I've missed! Haha.
Thanks, Peter