My apologies if this has been covered already but I looked through the archives 
and spent a good bit of time searching the standard sources and came up empty.  
I'm sure it's a known issue but I just wanted to verify because it's something 
that seemed strange to me and I wondered how I'd missed it before today.

Basically I noticed that when I had a linked image with text underneath it 
(text enclosed in paragraph tags), Firefox 3.0.9 and IE8 are applying different 
vertical spacing between the image and the text depending on whether I do a 
hard return in my text editor before the closing anchor tag or leave the anchor 
tag on the same line as the image source.

I'm using Dreamweaver code view for my editor and when I have the </a> on a 
separate line, I get more vertical spacing (about 5 pixels more) than when I 
have the </a> on the same line as the image source markup.  

I made a demo page here with some description on it and you can view the source 
to see the difference in the markup of the 2 examples:

http://gobama.ua.edu/test/extraspace_ff3_ie8/

(again, the difference is only about 5 pixels so you have to look pretty close 
to see it, but if you look at the capital T it's pretty obvious.)

Since IE has a history of having white space bugs, I wasn't surprised to see 
this in IE, but I don't ever recall Firefox getting picky about something like 
whether I put my </a> on a separate line or not. 

Is this just a known bug or issue in FF3 or Firefox in general that I've been 
completely ignorant about?  Or do I have some stupid error in my code that is 
causing this?  

This problem does not seem to be occurring in IE7, Chrome 1.0, Safari 4 (Win), 
or Opera 9, and I don't recall it happening in FF1 or FF2 but maybe it did.

By the way, I zeroed out/reset the padding/margins/borders on the p and img in 
the demo page, but I found the same behavior even when I had no styles set.  I 
just reset to 0 because it makes it easier to see the spacing difference.


Thanks,


Brian Jones


Brian Jones
Web Communications Specialist
The University of Alabama
[email protected]
205.348.8315

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to