PDA

View Full Version : PHP Photo Album



jscheuer1
12-06-2008, 03:56 AM
1) Script Title: PHP Photo Album

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem: In some cases in IE the use of:


document.write('<br style="clear: left" />')

is inadequate to clear the float of the generated .slideshow divisions. However, if it were changed to:


document.write('<div style="clear: left"></div>')

The problem would be resolved. As an additional precaution with this fix, it might be better to do it as:


document.write('<div style="clear: left; font-size: 1px"></div>')

as some browsers might otherwise add more of a break than a div element would in and of itself.

Or - make that (the font-size property of the clearing division) a configuration option in the script.

However, while that could be left to a future version, changing from <br> to <div> is simple enough to do now and should be.