Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > relative positioning layer

Reply
Thread Tools

relative positioning layer

 
 
Stijn Goris
Guest
Posts: n/a
 
      11-25-2003
hi all,

Hi all,

When using the relative positioning, relative to what is it positioned?

Lets say I use a table in a table in a table and place a layer inside.
Relative to what table will the layer be positioned?

kind regards
Stijn




 
Reply With Quote
 
 
 
 
Kris
Guest
Posts: n/a
 
      11-25-2003
In article <tXFwb.43081$>,
"Stijn Goris" <> wrote:

> hi all,


Hello

> Hi all,


Yes, tall mountains.

> When using the relative positioning, relative to what is it positioned?


Itself. Or, more specifically, the position the element would occupy if
not relative positioned. The values for top/left/bottom/right indicate
an offset from that location. The space that the element takes in when
not positioned is the space that stays in effect while relative
positioning is applied; this may look like the object is overlayed over
certain other objects (if offset is in effect) but still causing a
physical space.

> Lets say I use a table in a table in a table


In theory, bad example. In practice, a disaster.

> and place a layer inside.


I would have to assume here that you mean a Dreamweaver-produced DIV
here, CSS applied.

> Relative to what table will the layer be positioned?


Relative to the position that the DIV normally occupies without the
positioning.

--
Kris
erlands (nl)
 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      11-25-2003
"Stijn Goris" <> wrote:

>When using the relative positioning, relative to what is it positioned?


Relative to where the element would have been if it had not been
relatively positioned.

>Lets say I use a table in a table in a table


http://dorward.me.uk/www/nested/

>and place a layer inside.


What's a layer?
<layer> was a Netscape 4-ism that no other browser supports.
In CSS terms the word layer is not precisely defined, it could be any
positioned element, or any element with a z-index set, or something
more precise.

>Relative to what table will the layer be positioned?


Depends on the precise code used.

If you use a simple position: relative then the "layer" will not be
positioned relative to any of the tables, it will be positioned
relative to where it would have been if the position style had not
been applied.

If you use position: absolute then the "layer" will be positioned
relative to the nearest parent element with position set to something
other than static (the default) or to the root element if no parent is
positioned.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>
 
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
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay ASP .Net 1 12-18-2006 11:35 PM
Master Pages & relative/absolute positioning? Fred Nelson ASP .Net 1 02-21-2006 12:51 PM
CSS Position Layer relative to bottom of another layer (cont.) Dave Smithz HTML 3 02-20-2006 05:20 PM
absolute, relative, not set, static positioning ?????? Rob R. Ainscough ASP .Net 2 02-07-2006 07:32 PM
CSS Position Layer relative to bottom of another layer. Dave Smithz HTML 11 01-25-2006 03:01 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