johnsmith153 Posted October 11, 2008 Share Posted October 11, 2008 <img src="http://www.google.co.uk/intl/en_uk/images/logo.gif" alt="" name="image" id="image" /> I get whitespace afterwards. The image has a space after and below. I imagine this is very normal, but just this time I can not have any whitespace at all. Link to comment https://forums.phpfreaks.com/topic/127937-why-do-i-have-whitespace-after-my/ Share on other sites More sharing options...
DarkWater Posted October 11, 2008 Share Posted October 11, 2008 It could be some CSS declaration. Remove the id="image" part and see what happens. Link to comment https://forums.phpfreaks.com/topic/127937-why-do-i-have-whitespace-after-my/#findComment-662488 Share on other sites More sharing options...
johnsmith153 Posted October 11, 2008 Author Share Posted October 11, 2008 Got it. <div><img etc.> </div> creates the whitespace <div><img etc.></div> does not create the whitespace Why, who knows? But it works now, so that is good enough for me. Thanks anyway. Link to comment https://forums.phpfreaks.com/topic/127937-why-do-i-have-whitespace-after-my/#findComment-662497 Share on other sites More sharing options...
dropfaith Posted October 11, 2008 Share Posted October 11, 2008 just wondering was this in all browsers? i havent seen this issue Link to comment https://forums.phpfreaks.com/topic/127937-why-do-i-have-whitespace-after-my/#findComment-662498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.