🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #595

Re: Absolute Positioning without DIV

#595
From: Michel Leunen
Date: Thu, 20 Apr 2006 18:05
30 lines
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/
----------------------------------------
Technical Details
Message-ID: <4447cce7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44308352@newsgroups.borland.com> <4447525b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,c62975f3d23d812c
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 20 Apr 2006 20:05:47 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: Absolute Positioning without DIV
References: <44308352@newsgroups.borland.com> <4447525b$1@newsgroups.borland.com>
In-Reply-To: <4447525b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.242.161.46
Message-ID: <4447cce7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145556199 81.242.161.46 (20 Apr 2006 11:03:19 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail