Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,823 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,045 people online right now. Registration is fast and FREE... Join Now!




Prototype effect problem in IE

 
Reply to this topicStart new topic

Prototype effect problem in IE, BlindDown adds a free space above

Zumiic
22 Aug, 2008 - 02:02 AM
Post #1

New D.I.C Head
*

Joined: 20 Nov, 2007
Posts: 13


My Contributions
HI.
I making a site and im using prototype.js and effects. Im using BlindDown on a div. Its hidden at the start adn when i click on button the div slides down. Everything works fine, except that in IE7 when the blinddown finishes the Div jumps one line lower and a free line appears. I cant figure out what makes the free line. Maybe its the frameworks ,,bug".

Maybe you know how to fix this?

HTML part (the aaaa div at the start is just so, if nothing is before the sliding div, everythings fine, but with this - no )
CODE

<html>
<body>
<div>aaaaa</div>
<div id="signin">
        <div class="logincontent">
            <form id='login_form' name="login_form" action="" method="post">                
                Name:
                <input type="text" class="textField" value="" name="login_name"/>            

    
                Pass:
                <input type="password" class="textField" value="" name="password"/>            

    
                <input type="submit" name="submitbt" value="Login" class="buttonRight"/>        
            </form>
        </div>
        <p>
        <a href="#">Register/login</a>
        </p>
    </div>
</body>
</html>


JavaScript part
CODE

Event.addBehavior(
{
    "body":function(){
        this.down(".logincontent").hide();
    },
    "#signin a:click":function(e)
    {        
        new Effect.BlindDown(this.up('div').down(".logincontent"));
        e.stop();
        this.hide();    
    }
});


This post has been edited by Zumiic: 22 Aug, 2008 - 02:03 AM
User is offlineProfile CardPM
+Quote Post

Zumiic
RE: Prototype Effect Problem In IE
22 Aug, 2008 - 04:30 AM
Post #2

New D.I.C Head
*

Joined: 20 Nov, 2007
Posts: 13


My Contributions
Sry for trouble - seems that IE made a margin somewhere, and in css adding margin-top:0px; made this all fine smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 03:08PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month