Coder Social home page Coder Social logo

Comments (4)

PitPik avatar PitPik commented on September 6, 2024

If I take your jsFiddle examples and turn z-index:9999 off, it still works. Don't know what's wrong. The colorPicker gets appended to the end of the document, so it should always be on top of all other things. Just make sure that you don't set other elements on some high z-index and that the html and body has a full height (100%) so positioning works fine.

from tinycolorpicker.

Daijobou avatar Daijobou commented on September 6, 2024

Here a example http://img5.picload.org/image/cwirgaa/colorpickera.png
or http://jsfiddle.net/030j27LL/4/ click in edit.. you will not see the box.

from tinycolorpicker.

PitPik avatar PitPik commented on September 6, 2024

To your example in http://jsfiddle.net/030j27LL/4/: there you have #container {z-index: 3} which is the first child of ''. .cp-color-pickeris the second child, so it gets covered by #container. You also have position: relative; and background:silver;in your #container css declaration, and this gives the rest...
Try not to use z-index in your pages. This gives a lot of confusions. Different browsers even translate this differently and its hard to debug. Only use 'z-index' if its really needed.

from tinycolorpicker.

Daijobou avatar Daijobou commented on September 6, 2024

In my code I need z-index, its in a overlay and that must be over all other elements on the page. I think my case is "special" so I close this ticket. ;)

from tinycolorpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.