Positioning a div right under a text input

T

Thierry Lam

Let's say I have the following piece of codes:

<input type="text" name="name" id="keyword" maxlength="50" size="40"
onkeyup= "handleKeyUp(event)" value="" autocomplete=off/>
<div id="scroll">
</div>


The scroll div is supposed to show off possible suggests for the text
input. How can I ensure that the div is always under my text input?
 
J

Jukka K. Korpela

Thierry said:
<input type="text" name="name" id="keyword" maxlength="50" size="40"
onkeyup= "handleKeyUp(event)" value="" autocomplete=off/>
<div id="scroll">
</div>

The scroll div is supposed to show off possible suggests for the text
input. How can I ensure that the div is always under my text input?

You cannot. What is "under" in speech? And how could the div appear under
the input in Braille display? Besides, in visual browsers too, the browser
and the user always have the final word.

But under any normal circumstances, the <div> element will appear under
<input> in visual rendering, unless you do something to prevent that. So
what is the problem?
 
T

Thierry Lam

I just fixed it using table.
You cannot. What is "under" in speech? And how could the div appear under
the input in Braille display? Besides, in visual browsers too, the browser
and the user always have the final word.

But under any normal circumstances, the <div> element will appear under
<input> in visual rendering, unless you do something to prevent that. So
what is the problem?
 
R

richard

Thierry Lam said:
Let's say I have the following piece of codes:

<div>
<input type="text" name="name" id="keyword" maxlength="50" size="40"
onkeyup= "handleKeyUp(event)" value="" autocomplete=off/>
</div>
<div id="scroll">
</div>
 
J

Jukka K. Korpela

Thierry said:
I just fixed it using table.

Great. _Now_ you have a problem. But I guess you are not interested in
solving problems, because creating is so much more fun.
 
T

Thierry Lam

I just noticed that using tables as a layout is a big problem, can you
point me to any resources web links or css book on how to avoid using
this table layout?
 

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,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top