Two popup divs same CSS different position

Discussion in 'CSS' started by robcub, Mar 11, 2011.

  1. #1
    I'm a bit confused with this one - I think it must be a JS issue

    http://www.schmoozefm.com/archive-post-test

    Two buttons saying: "Re-list this deal" on clicking both of these a div with a form in it becomes visible - I would like the div to be centered in the window on each occasion.

    I think the CSS and HTML are identical for the two so I think the issue must be in the JS in the header...

    I would be grateful for any suggestions.
     
    robcub, Mar 11, 2011 IP
  2. Peter Brown

    Peter Brown Well-Known Member

    Messages:
    1,638
    Likes Received:
    117
    Best Answers:
    0
    Trophy Points:
    180
    #2
    Same CSS however the the pop-up divs are in different containers.

    Move:

    <div id="layer2" style="visibility: hidden;">
    <span id="close2"><a href="javascript:setVisible('layer2')"><strong>Close window</strong></a></span>
    <h3>Re-list this deal</h3>
    <div align="center">
    <br>
    <form method="post" action="send.php" name="frm2">
    <p><label>Please enter your email address</label> </p>
    <p><input type="text" onfocus="getUrlVars2()" style="width: 350px;" name="txtEmail2"> </p>
    <input type="hidden" style="width: 350px;" name="entry2">
    <input type="submit" id="relist-form-button" onclick="return ValidateForm2()" value="Re-list" name="submit2">
    </form>
    </div>
    </div>

    To be directly above <div id=layer1>.

    Let me know how you get on.
     
    Peter Brown, Mar 11, 2011 IP
  3. robcub

    robcub Greenhorn

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Thank you for that, Peter, really, really helpful of you.

    I was thinking it was something like that but I thought Firebug/Chrome developer tools would have shown me somehow.
     
    robcub, Mar 11, 2011 IP
  4. Peter Brown

    Peter Brown Well-Known Member

    Messages:
    1,638
    Likes Received:
    117
    Best Answers:
    0
    Trophy Points:
    180
    #4
    No problem Rob, glad you sorted it :)
     
    Peter Brown, Mar 12, 2011 IP