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 5952081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:37:49+00:00 2026-05-22T17:37:49+00:00

I am trying to code this from scratch, so that when a button clicked

  • 0

I am trying to code this from scratch, so that when a button clicked it makes an options div appear on top of the existing div without displacing it’s original position. This picture illustrates the concept:

https://i.stack.imgur.com/lxL4r.jpg

I have put an ‘onclick’ command on the button so that the javascript below is executed upon clicking the button

xmlObj.open ('GET', '/ajax?action=editbox', true);
xmlObj.send ('');

I have omitted the rest of the code prior to this point as it’s standard stuff.

This is where I am now completely stuck. I want to now have code in a php file called ‘editbox.php’ which tells the webpage to make the options div in the picture appear on top of the orignal div (without displacing the position of the original div).

I would appreciate any tips or guidance very much.

  • 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-22T17:37:50+00:00Added an answer on May 22, 2026 at 5:37 pm

    This seems like more of an HTML/CSS question; there’s no clear reason (at least, not from the phrasing of the question) to use PHP to accomplish this. Your options div might as well be present in the DOM from the time your page is first loaded, but with its CSS display set to none. Give the button and the parent div position: relative then style the button and the options div to be positioned absolutely to the upper right corner of the parent. Make sure the button and the options div are the last children of that parent box, and that they’re in that order, so the z-index will naturally occur the way you want them to. In the button’s onclick, set the options div to display: block.

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

Sidebar

Related Questions

hI, I'm trying to get this code from Larry Nyhoff's book to compile in
To be specific, I was trying this code: package hello; public class Hello {
I'm trying to avoid code like this when reusing the same ViewUserControl in ASP.NET
I am currently trying out this code: NSString *path = [[NSBundle mainBundle] pathForResource:@dream ofType:@m4a];
i am trying to use this code to bind my asp.net menu control to
I'm trying to use this code to replace spaces with _, it works for
I've been trying to get this code to work for hours! All I need
I'm trying to compile a POCO with this code public class MenuItem { public
I was trying to understand something with pointers, so I wrote this code: #include
I am trying to convert this test code to C# and having a problem

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.