The following works somewhat fine in chrome, but is garbage in IE and FF. I can not seem to figure out why .height is not working. Any help is appreciated. The goal is to have the img in the light box stay within the viewport (actually a bit smaller then the viewport) *please note, I am a rookie to jquery and I am sure the below could be improved or changed. (:
Could you then post enough code for me to recreate your problem?
You can use this template:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
your CSS here
</style>
</head>
<body>
your HTML here
</body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>
your JS here
</script
</html>
Thanks for taking the time to look at it, I appreciate it. I have put the code here so it would not be so long. Also, I was unable to provide the image link and src. Thanks