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

  • Home
  • SEARCH
  • 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 6171457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:13:08+00:00 2026-05-23T23:13:08+00:00

For a project I’m working on, I need to make a custom button that

  • 0

For a project I’m working on, I need to make a custom button that can be dragged and dropped and then have it’s position saved so that a separate window can be opened with the button in the same position as it was saved at. The issue right now is top and left, which are supposed to be the 2 main attributes in changing/saving a buttons location. I specify both attributes in CSS for the button, but when I use firebug, neither left nor top have a value assigned to them. Furthermore, I specify the height and width of the button in the CSS as well. My button has the proper dimensions but its height and width values are both empty. Does anyone know why either of these scenarios could happen?

I also tried setting the values in javascript, which gave top and left a value but had no effect on the button’s positioning. The other thing I don’t get is that changing the buttons marginLeft and marginTop affects the buttons position, but this is not a legitimate option for positioning the button because i will need to have buttons close to each other, which wont work if they have a margin. So is there a reason that top and left wouldn’t have an affect on a button’s positioning?

  • 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-23T23:13:08+00:00Added an answer on May 23, 2026 at 11:13 pm

    You need to use position:relative;, position:absolute;, or position:fixed;. You also need to make sure its display is inline-block or block for width and height to work.

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

Sidebar

Related Questions

Project is C#. So I have a bunch of multithreaded code that is designed
I project I have been working on has now been split between me and
A project I have been working on for the past year writes out log
I have a project that adds elements to an AutoCad drawing. I noticed that
Project: I am having a button that toggles the column length from 3 to
Project Description: I have to make an application in android which gets the Latitude
A project I'm working on at the moment involves refactoring a C# Com Object
The project is ASP.NET 2.0, I have never been able to reproduce this myself,
The project I'm working is using n-tier architecture. Our layers are as follows: Data
Project Euler and other coding contests often have a maximum time to run or

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.