anyway to know the dimensions of the children inside <div>

A

alanchinese

let's say i have codes like this:
<form>
<div>
<input type="text" name="in1" size="10">
<input type="text" name="in2" size="100">
<!-- more inputs -->
</div>
<form>

can javascript calculate (and even re-arrange) how these "input"s (or
any other elements) locate?
 
T

Tony

let's say i have codes like this:
<form>
<div>
<input type="text" name="in1" size="10">
<input type="text" name="in2" size="100">
<!-- more inputs -->
</div>
<form>

can javascript calculate (and even re-arrange) how these "input"s (or
any other elements) locate?

Yes. You will need to learn a bit about CSS positioning and
manipulating it via the DOM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top