Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6570365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:44:51+00:00 2026-05-25T14:44:51+00:00

I would like to create a registration process where the user must accept the

  • 0

I would like to create a registration process where the user must accept the TOS before providing Name and Password.

Here is the screen cast and you will see the issue I am having:

http://screencast.com/t/3MF5LSIab (11 secs)

When the user clicks on next after agreeing to the TOS, the div slides out of screen but the next div slides in under the first div and when the first div is gone, the second dive popups up to the top.

EDIT – Add missing code

jQuery:

$('#tandc_next').click(function(){
    $('#tandc').hide("slide", { direction: "left" }, 1000);
    $('#account_info').show("slide", { direction: "right" }, 1000);
});

CSS for both divs:

background-color: #fff;
border: 1px solid #999;
color: #000;
padding: 8px;
margin-bottom: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
-ms-border-radius: 5px;
-khtml-border-radius: 5px;
border-radius: 5px;

And the parent container has this:

.registration form > div {
    position: relative; }

The html layout is:

div.registration
     form
        div#tandc
        div#account_info

How do I make it so that the 2nd div slides in so that they top of each div is at the same height?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:44:51+00:00Added an answer on May 25, 2026 at 2:44 pm

    You should try

    .registration form > div {
        position: absolute;
        top:0px;
       }
    

    This way, they both will be aligned on the top of their parent.

    EDIT: the problem is that jQuery uses a wrapper to slide, to overcome such effect, you’ll have to wrap them in outer div that will be positioned.

    An example of the following could be achieved like that : http://jsfiddle.net/HKsHy/

    Using the following layout

    div.registration
       form
          div
             div
          div
             div
    

    And adding the css from above (the one with the absolute positioning)

    And using the following jQuery

    $(".registration form > div").has("#account_info").css("display","none");
    
    $('#tandc_next').click(function() {
        $('#tandc').hide("slide", {
            direction: "left"
        }, 1000);
        $(".registration form > div").has("#account_info").css("display","block");
        $('#account_info').show("slide", {
            direction: "right"
        }, 1000);
    });
    

    The first line has to be executed to hide the second div. It’s then showed back. during the slide.

    EDIT2:

    You could even achieve a cleaner show effect using a timeout. Like that:

    function showSecond(){
        $(".registration form > div").has("#account_info").show();
        $('#account_info').show("slide", {
            direction: "right"
        }, 1000);   
    }
    $('#tandc_next').click(function() {
        $('#tandc').hide("slide", {
            direction: "left"
        }, 1000);
        setTimeout(showSecond,500);       
    
    });
    

    Example here: http://jsfiddle.net/HKsHy/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a registration page which takes user information and generates
Would like to create a strong password in C++. Any suggestions? I assume it
I would like to create a registration form which creates subdomains (yet on localhost),
In my registration, a user can create an account with no password if they
I would like create my own collection that has all the attributes of python
I would like create a web service in ASP.Net 2.0 that will supports JSON.
I would like to create a database backed interactive AJAX webapp which has a
I would like to create an SSL connection for generic TCP communication. I think
I would like to create a file format for my app like Quake, OO,
I would like to create a stored procedure in MySQL that took a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.