Darkmatter5 Posted April 16, 2009 Share Posted April 16, 2009 I've noticed with some sites that if an image can't be found a border with some alt text is displayed. In doing this essentially reserves the space where the image goes. How can I make an image do this if it can't be found? Link to comment https://forums.phpfreaks.com/topic/154419-help-with-an-image/ Share on other sites More sharing options...
jackpf Posted April 16, 2009 Share Posted April 16, 2009 Hmm...something to do with htaccess. I'm not sure how exactly - something to do with a 404 if the type is an image probably. Google will be your best bet. Link to comment https://forums.phpfreaks.com/topic/154419-help-with-an-image/#findComment-811949 Share on other sites More sharing options...
jcombs_31 Posted April 16, 2009 Share Posted April 16, 2009 It has nothing to do with .htaccess, it is simply a browser behavior. If you define with width and height of the image that will be the size of your empty box. Link to comment https://forums.phpfreaks.com/topic/154419-help-with-an-image/#findComment-811964 Share on other sites More sharing options...
jackpf Posted April 16, 2009 Share Posted April 16, 2009 Oh, I thought you meant like, when an image isn't found, it'll display a custom image or whatever. I misunderstood. Link to comment https://forums.phpfreaks.com/topic/154419-help-with-an-image/#findComment-811981 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.