Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by Colin B Maharaj
Mon, 03 Apr 2006 02:07
Absolute Positioning without DIV
Author: Colin B Maharaj
Date: Mon, 03 Apr 2006 02:07
Date: Mon, 03 Apr 2006 02:07
12 lines
1159 bytes
1159 bytes
Hi all, this is a Javascript question by the way. :) I hope someone can help. I would like to place either a Web Control or text in an absolute position... This is how I currently do it..... <div style="position:absolute; left:50px; top:300px"> Caption Text </div> This works, but can I do this without a DIV???
Re: Absolute Positioning without DIV
Author: Mark Jacobs
Date: Thu, 20 Apr 2006 09:22
Date: Thu, 20 Apr 2006 09:22
21 lines
1535 bytes
1535 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:44308352@newsgroups.borland.com... > Hi all, this is a Javascript question by the way. :) > I hope someone can help. > > I would like to place either a Web Control or text > in an absolute position... > This is how I currently do it..... > > <div style="position:absolute; left:50px; top:300px"> > Caption Text > </div> > > This works, but can I do this without a DIV??? Did you try SPAN instead of DIV? -- Mark Jacobs DK Computing http://www.dkcomputing.co.uk
Re: Absolute Positioning without DIV
Author: Michel Leunen
Date: Thu, 20 Apr 2006 18:05
Date: Thu, 20 Apr 2006 18:05
30 lines
1879 bytes
1879 bytes
Mark Jacobs wrote: > "Colin B Maharaj" <noreply@myhost.com> wrote in message > news:44308352@newsgroups.borland.com... >> Hi all, this is a Javascript question by the way. :) >> I hope someone can help. >> >> I would like to place either a Web Control or text >> in an absolute position... >> This is how I currently do it..... >> >> <div style="position:absolute; left:50px; top:300px"> >> Caption Text >> </div> >> >> This works, but can I do this without a DIV??? > > Did you try SPAN instead of DIV? It should work with all block tags. For instance this also works: <p style="position:absolute; left:50px; top:300px">Caption Text</p> Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads