logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-25-2009, 02:56 AM   #1
nanny
 
Join Date: Apr 2006
Posts: 290
Default lightbox javascript ruins css in IE

Hi I am using a lightbox and in firefox looks great but when I add this:
Code:
 <script type="text/javascript">
            window.addEvent('domready',function(){
                Lightbox.init({descriptions: '.lightboxDesc', showControls: true});
            });
        </script>
It makes the bottom div separate from the bottom. The bottom div is an image below the footer and is important to stay at the bottom. In my css I have margin-bottom: 0px; but still separates. When I remove the javascript - all works well except the lightbox.

Any reason why?
nanny is offline   Reply With Quote
Old 01-26-2009, 08:28 AM   #2
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Quote:
Originally Posted by nanny View Post
Hi I am using a lightbox and in firefox looks great but when I add this:
Code:
 <script type="text/javascript">
            window.addEvent('domready',function(){
                Lightbox.init({descriptions: '.lightboxDesc', showControls: true});
            });
        </script>
It makes the bottom div separate from the bottom. The bottom div is an image below the footer and is important to stay at the bottom. In my css I have margin-bottom: 0px; but still separates. When I remove the javascript - all works well except the lightbox.

Any reason why?
It's probably a conflicting style in the lightbox CSS file. Maybe a zero margin or something like that. Difficult to tell without seeing it. Got a URL?
Corrosive is offline   Reply With Quote
Old 01-30-2009, 03:45 AM   #3
nanny
 
Join Date: Apr 2006
Posts: 290
Default

Thanks for the reply - found a few javascripts do odd things to some divs at times so I dropped that lightbox (found other issues) and went with lightbox 2 - so easy compared to a few others I tried.
nanny is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com