Hello fellow colleagues,
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content ,
AP1 should not be in front of (overlapping) AP2 ?
Recap:
RP1 is relatively positioned block, with z-index:11
AP1 is an absolutely positioned block, with z-index:10, nested inside RP1
RP2 is relatively positioned block, with z-index: auto
AP2 is an absolutely positioned block, with z-index:20, nested inside RP2
-------
In the second example where
RP1 has z-index: 11
AP1 has z-index: 1000
RP2 has z-index: auto
AP2 has z-index: 20
I do not see/understand why AP1 shouldn't be in front of AP2.
Gérard
--
remove blah to email me 5 3172
Gérard Talbot wrote: Hello fellow colleagues,
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content , AP1 should not be in front of (overlapping) AP2 ?
Recap: RP1 is relatively positioned block, with z-index:11
AP1 is an absolutely positioned block, with z-index:10, nested inside RP1
RP2 is relatively positioned block, with z-index: auto
AP2 is an absolutely positioned block, with z-index:20, nested inside RP2
-------
In the second example where RP1 has z-index: 11 AP1 has z-index: 1000 RP2 has z-index: auto AP2 has z-index: 20 I do not see/understand why AP1 shouldn't be in front of AP2.
Because they're in a different "stacking context" - in a different
sub-stacking order. http://www.w3.org/TR/CSS21/visuren.html#x36
--
Gus
Gus Richter a écrit : Gérard Talbot wrote:
Hello fellow colleagues,
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content , AP1 should not be in front of (overlapping) AP2 ?
Recap: RP1 is relatively positioned block, with z-index:11
AP1 is an absolutely positioned block, with z-index:10, nested inside RP1
RP2 is relatively positioned block, with z-index: auto
AP2 is an absolutely positioned block, with z-index:20, nested inside RP2
-------
In the second example where RP1 has z-index: 11 AP1 has z-index: 1000 RP2 has z-index: auto AP2 has z-index: 20 I do not see/understand why AP1 shouldn't be in front of AP2.
Because they're in a different "stacking context" - in a different sub-stacking order.
http://www.w3.org/TR/CSS21/visuren.html#x36
I still don't get it. RP1 has a greater stack level than RP2. So it
should be in front of RP2. 11 is greater than 0.
"Boxes with greater stack levels are always formatted in front of boxes
with lower stack levels."
Now, the sub-stack level shouldn't change that. 11.10 is still greater
than 0.20.
"For those with 'z-index: auto', treat the element as if it created a
new stacking context, but any descendants which actually create a new
stacking context should be considered part of the parent stacking
context, not this new one." http://www.w3.org/TR/CSS21/zindex.html#q2
Gérard
--
remove blah to email me
Gérard Talbot wrote: Gus Richter a écrit :
Gérard Talbot wrote:
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content , AP1 should not be in front of (overlapping) AP2 ?
I do not see/understand why AP1 shouldn't be in front of AP2.
Because they're in a different "stacking context" - in a different sub-stacking order.
http://www.w3.org/TR/CSS21/visuren.html#x36
I still don't get it.
RP2 current stacking context=10 local stacking context=0
AP2 local stacking context=10
RP1 current stacking context=11 local stacking context=0
AP1 local stacking context=1000
--
Gus
Gérard Talbot wrote: Gus Richter a écrit :
Gérard Talbot wrote:
Hello fellow colleagues,
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content , AP1 should not be in front of (overlapping) AP2 ?
Recap: RP1 is relatively positioned block, with z-index:11
AP1 is an absolutely positioned block, with z-index:10, nested inside RP1
RP2 is relatively positioned block, with z-index: auto
AP2 is an absolutely positioned block, with z-index:20, nested inside RP2
-------
In the second example where RP1 has z-index: 11 AP1 has z-index: 1000 RP2 has z-index: auto AP2 has z-index: 20 I do not see/understand why AP1 shouldn't be in front of AP2. Because they're in a different "stacking context" - in a different sub-stacking order.
http://www.w3.org/TR/CSS21/visuren.html#x36
I still don't get it. RP1 has a greater stack level than RP2. So it should be in front of RP2. 11 is greater than 0.
"Boxes with greater stack levels are always formatted in front of boxes with lower stack levels."
Now, the sub-stack level shouldn't change that. 11.10 is still greater than 0.20. "For those with 'z-index: auto', treat the element as if it created a new stacking context, but any descendants which actually create a new stacking context should be considered part of the parent stacking context, not this new one." http://www.w3.org/TR/CSS21/zindex.html#q2
Sorry, I mixed up the 1st and 2nd example in my deleted initial
response. Here is the way I see it in order of bottom to top, or back to
front for the first example:
RP2 z-index:auto or zero (does not establish a new local stacking
context.)
RP1 z-index:11 (current stacking context) z-index:0 (local stacking
context)
AP1 z-index:11 (local stacking
context)
AP2 z-index:20 (current stacking context)
--
Gus
Gérard Talbot wrote: Gus Richter a écrit :
Gérard Talbot wrote:
Hello fellow colleagues,
Can someone explain to me why, in this page http://www.aplus.co.yu/css/z-pos/index4.php#content , AP1 should not be in front of (overlapping) AP2 ?
Recap: RP1 is relatively positioned block, with z-index:11
AP1 is an absolutely positioned block, with z-index:10, nested inside RP1
RP2 is relatively positioned block, with z-index: auto
AP2 is an absolutely positioned block, with z-index:20, nested inside RP2
-------
In the second example where RP1 has z-index: 11 AP1 has z-index: 1000 RP2 has z-index: auto AP2 has z-index: 20 I do not see/understand why AP1 shouldn't be in front of AP2. Because they're in a different "stacking context" - in a different sub-stacking order.
http://www.w3.org/TR/CSS21/visuren.html#x36
I still don't get it. RP1 has a greater stack level than RP2. So it should be in front of RP2. 11 is greater than 0.
"Boxes with greater stack levels are always formatted in front of boxes with lower stack levels."
Now, the sub-stack level shouldn't change that. 11.10 is still greater than 0.20. "For those with 'z-index: auto', treat the element as if it created a new stacking context, but any descendants which actually create a new stacking context should be considered part of the parent stacking context, not this new one." http://www.w3.org/TR/CSS21/zindex.html#q2
I hope that I'm going to get it right this time!
Sorry, I mixed up the 1st and 2nd example in my deleted initial
response. Here is the way I see it in order of bottom to top, or back to
front for the first example:
RP2 z-index:auto or zero (does not establish a new local stacking
context.)
RP1 z-index:11 (current stacking context) z-index:0 (local stacking
context)
AP1 z-index:10 (local stacking
context)
AP2 z-index:20 (current stacking context)
--
Gus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Christine Long |
last post by:
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project.
Programmers: Providing your Service is made easy through Colance. It is free to sign up...
|
by: Aaron Williams |
last post by:
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project.
Programmers: Providing your Service is made easy through Colance. It is free to sign up...
|
by: leegold2 |
last post by:
Let's I do a mysql query and then I do a,
for( $i = 1; $row = mysql_fetch_array($result); $i++ ) {...}
and it gives me this:
PageID Title URL Description
1 lee's ...
|
by: frank.baris |
last post by:
I usually can figure out anything by searching the groups or the net
all day, but this problem has been bugging me for awhile now.
I have multiple databases, all of which have the same 2 tables,...
|
by: Google Mike |
last post by:
I guess I'm confused by the whole timezone thing and I don't want to
write a web app that gets this stuff wrong. I don't know how timezones
work exactly -- is it just hours +/- on GMT or are there...
|
by: eric rudolph |
last post by:
1. I'm designing a PHP-based page that has a lot of design stuff in it. It's
very tough to mix the HTML and PHP and have it be readable. The site isn't
overall so complicated, there's just a lot of...
|
by: Abyss |
last post by:
My view. anyone that doesn't like it tough, click off and stop reading it.
I have spent the last 45 minutes reading through all the posts, and I
believe that you have all missed the mark of...
|
by: Arial |
last post by:
My SQL string is kind of wierd one.
In my application, I need to select things from an
unknown name table. But I know the table name before the
SQL command is executed.
For instance,
Dim...
|
by: Mr Shore |
last post by:
how to do the follows in IE:
there's page A with element a
pop a new page B from script in A
and append element a into B
after closing page B
put element a back into A
'IE' solution only
|
by: Jim Rutledge |
last post by:
ok ok , anyone know anything on this tough question?
How do you determine the length in seconds that a midi file is , or any
audio file for that matter ?
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |