Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Positioning a div right under a text input

Reply
Thread Tools

Positioning a div right under a text input

 
 
Thierry Lam
Guest
Posts: n/a
 
      09-26-2006
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?

 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-26-2006
Thierry Lam wrote:

> <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?

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
Thierry Lam
Guest
Posts: n/a
 
      09-26-2006
I just fixed it using table.

Jukka K. Korpela wrote:
> Thierry Lam wrote:
>
> > <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?
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/


 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      09-26-2006

"Thierry Lam" <> wrote in message
news: ups.com...
> 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>

 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-27-2006
Thierry Lam wrote:
> 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.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Thierry Lam
Guest
Posts: n/a
 
      09-27-2006
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?

Jukka K. Korpela wrote:
> Thierry Lam wrote:
> > 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.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
positioning a DIV right in the middle of the screen laredotornado@zipmail.com Javascript 0 02-14-2007 11:59 PM
Positioning a div under cursor/pointer paulsilver Javascript 2 07-25-2006 01:44 PM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57