-3

Working on a bunch of code, couldn't easily copy the part in here that seems broken because I'm not sure where the problem is at. Situation: there's text inside a div that I need to make selectable, but there's an other div with higher Z-index on top that doesn't allow me to select the text in the lower-z-indexed div. Any idea how to solve this?

jibly
  • 115
  • 1
  • 13

1 Answers1

3

This is what I did:

#b{
    position:fixed;
    background-color: blue;
    opacity:0.5;
    z-index:5;
    pointer-events: none;
}

Here is the JSFiddle demo

Ahs N
  • 8,233
  • 1
  • 28
  • 33
  • 1
    Should be noted that `pointer-events` are IE11 and up only. - http://caniuse.com/#feat=pointer-events – Paulie_D Aug 06 '15 at 10:18