{"id":334,"date":"2006-08-19T18:48:46","date_gmt":"2006-08-19T10:48:46","guid":{"rendered":"http:\/\/www.darkmirage.com\/2006\/08\/19\/lightbox-js-and-firefox\/"},"modified":"2006-08-19T18:54:42","modified_gmt":"2006-08-19T10:54:42","slug":"lightbox-js-and-firefox","status":"publish","type":"post","link":"http:\/\/www.darkmirage.com\/2006\/08\/19\/lightbox-js-and-firefox\/","title":{"rendered":"Lightbox JS and Firefox"},"content":{"rendered":"<p class=\"caption\"><img style=\"border:0;\" src=\"http:\/\/darkmirage.com\/blog\/wp-content\/themes\/default\/images\/balance.gif\" alt=\"Balancing\" \/><br \/>\nThe new loading image<\/p>\n<p>I changed the default loading.gif of <a href=\"http:\/\/www.huddletogether.com\/projects\/lightbox\/\">Lightbox<\/a> (as you may have noticed in the post below) and modified the CSS file as best as I could to fit the new dimensions and it seems to work fine in Firefox. Click <a href=\"http:\/\/www.darkmirage.com\/blog\/wp-content\/uploads\/2006\/08\/19_negima1.jpg\" rel=\"lightbox\">here<\/a> for a demo.<\/p>\n<p><!--more--><\/p>\n<p>However, on IE everything falls apart&#8230;<\/p>\n<p><img id=\"image335\" class=\"centered\" src=\"http:\/\/www.darkmirage.com\/blog\/wp-content\/uploads\/2006\/08\/19_lightbox.jpg\" alt=\"Lightbox comparison\" \/><\/p>\n<p>For some reason, the image sticks out of the box on IE even though the same box size has no problems on Firefox. Gah. I tried everything I could think of with the margins and positioning but it&#8217;s still no good. So I gave up.<\/p>\n<p>Here are the parts I modified from lightbox.css, commented lines are the original values:<\/p>\n<blockquote><p><code>#outerImageContainer{<br \/>\n\tposition: relative;<br \/>\n\tbackground-color: #fff;<br \/>\n\twidth: 300px;<br \/>\n\theight: 375px;<br \/>\n\t\/\/height: 250px;<br \/>\n\t\/\/width: 250px;<br \/>\n\tmargin: 0 auto;<br \/>\n\t}<\/code><\/p>\n<p><code>#loading{<br \/>\n\tposition: absolute;<br \/>\n\ttop: 10%;<br \/>\n\t\/\/top: 40%;<br \/>\n\tleft: 0%;<br \/>\n\theight: 25%;<br \/>\n\twidth: 100%;<br \/>\n\ttext-align: center;<br \/>\n\tline-height: 0;<br \/>\n\t}<\/code><\/p><\/blockquote>\n<p>I really have no idea what is wrong with Internet Explorer. Hopefully someone out there does&#8230; In the meantime, please get Firefox if you want to see an animated gif of a maid balancing a plate the way it was meant to be seen!<\/p>\n<p class=\"center\"><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-8980773669361185\";\ngoogle_ad_width = 125;\ngoogle_ad_height = 125;\ngoogle_ad_format = \"125x125_as_rimg\";\ngoogle_cpa_choice = \"CAAQhf-XhAIaCBPz_sSdkzoXKK2293M\";\ngoogle_ad_channel = \"\";\n\/\/--><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p class=\"center\" style=\"font-size: 1.2em;\"><strong>Firefox-ko compels you!<\/strong><\/p>\n<p><img id=\"image336\" class=\"centered\" src=\"http:\/\/www.darkmirage.com\/blog\/wp-content\/uploads\/2006\/08\/19_firefoxko.jpg\" alt=\"Firefox-ko\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The new loading image I changed the default loading.gif of Lightbox (as you may have noticed in the post below) and modified the CSS file as best as I could to fit the new dimensions and it seems to work &hellip; <a href=\"http:\/\/www.darkmirage.com\/2006\/08\/19\/lightbox-js-and-firefox\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,4],"tags":[298,303,60,33],"_links":{"self":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts\/334"}],"collection":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.darkmirage.com\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}