gracie4288
07-19-2007, 05:27 AM
Hello :)
I am using the Lightbox 2 javascript (available here (http://www.huddletogether.com/projects/lightbox2/)) for my friend's portfolio: http://www.renewiley.com/art.php, however, after a picture is clicked, the shadow overlay doesn't stretch over the full browser--especially if you scroll down.
The support from the creator (http://www.huddletogether.com/projects/lightbox2/#support) said:
The shadow overlay doesn't stretch to cover full browser window.
Remove the default margin and padding from the body tag. Add body{ margin: 0; padding: 0; } to your stylesheet.
I did that, yet this still didn't fix the problem. Through a series of trial and error, I discovered the Lightbox 2 script works fine when I remove my doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Here is the "fixed" example (http://renewiley.com/art2.php)
How can I make the script work without removing my doctype?
I am using the Lightbox 2 javascript (available here (http://www.huddletogether.com/projects/lightbox2/)) for my friend's portfolio: http://www.renewiley.com/art.php, however, after a picture is clicked, the shadow overlay doesn't stretch over the full browser--especially if you scroll down.
The support from the creator (http://www.huddletogether.com/projects/lightbox2/#support) said:
The shadow overlay doesn't stretch to cover full browser window.
Remove the default margin and padding from the body tag. Add body{ margin: 0; padding: 0; } to your stylesheet.
I did that, yet this still didn't fix the problem. Through a series of trial and error, I discovered the Lightbox 2 script works fine when I remove my doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Here is the "fixed" example (http://renewiley.com/art2.php)
How can I make the script work without removing my doctype?