"KiwiBrian" <> wrote in message
news:fo9c2h$ne8$...
>
> "rf" <> wrote in message
> news:88Wpj.11447$...
>>
>> "KiwiBrian" <> wrote in message
>> news:fo9a72$m92$...
>>> Can anyone tell me why the image is obscuring the text in the following
>>> simplified test page:-
>>> http://www.kiwibrian.qupis.com/test/test.html
>>> I had expected that my allocation of z-index:1 to both the image and
>>> it's containing div, along with an allocation of z-index:100 to the text
>>> paragraph tag, would have ensured that the text would be visibly
>>> superimposed on the image, but not so.
>>
>> z-index only applies to positioned elements. The <p> containing that text
>> is not positioned so z-index does not apply.
>>
>> http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index
>>
>> Pay particular attention to the concept of staking context and kicak
Streuth. Move a hand one notch to the left and 'local' becomes 'kicak'
>> stacking context.
>
> Thanks Richard.
> Another lesson learnt.
> I added position:relative to the text-containing div and that produced the
> desired result.
> Would I need to be aware of any possible unwanted side-effects from making
> my text paragraph relatively positioned?
Er, IIRC the only thing to consider is that by positioning (relative) that
<p> you are establishing a new block formatting context so anything
absolutely positioned within that <p> will now be positioned relative to the
<p> rather than relative to the enclosing block formatting context, but
that should not worry you as you aren't going to absolutely position
anything within that <p>, are you
BTW why are you positioning red text without background over that very dark
golf ball? Experimental stuff?
--
Richard.