CSS Question

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
iammisc

CSS Question

Post by iammisc »

Hi!

I am currently working on a JavaScript Windows Interface, much like bindows, but much much better, which uses AJAX to remotely call a php script which tells the JavaScript exactly how to display a new window and where to add controls, like buttons and checkboxes.

So far, I can add a window which you can move around and I can use and display buttons, but they are not being positioned correctly. If I add one button, and set its "relative" position property, it works fine. But when I add two and want the second one to be at position 1,1 relative to the window, it appears 1,1 relative to its normal html position, so it appears under the other button. I will get a screenshot posted as soon as possible.

My question is: I have a table, which is the window. I want to position an object( a button ) relative to the beginning of the table. I can't use style.position="relative" because that will be relative from its NORMAL html position so maybe my question should be how do I change its NORMAL html position.

When finished, I do intend to make this toolkit free and open-source seeing as all javascript used on webpages are pretty much opensource
Post Reply