homepage Welcome to WebmasterWorld Guest from 184.73.52.98
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
Stacked divs
renders text unselectable?
Edouard_H




msg:1179245
 4:54 am on Feb 21, 2003 (gmt 0)

<div id="a"> has z-index:1, <div id="b"> has z-index:2 and transparent as background color. "b" has right text alignment and contains one image. Shouldn't text in "a", visible through "b", be selectable if there is nothing directly over in "b"? I've purposefully stacked a transparent .gif over divs before to achieve just that - was I wasting my time? Causing me pause before moving on to "C".

 

BlobFisk




msg:1179246
 11:27 am on Feb 21, 2003 (gmt 0)

Hi Edouard_H,

While there is nothing visibly over "a", from the browsers point of view there is something over div a, namely div b. While the background is transparent and you can see the contents of div a, div b (an object) is still sitting on top of div a.

Therefore, when your mouse is trying to select the text in div a, it is in fact just trying trying to select anything in the top most object, ie div b.

HTH

Edouard_H




msg:1179247
 2:45 pm on Feb 21, 2003 (gmt 0)

Thanks BlobFisk. It all makes sense in the light of day.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved