Comments (4)
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.
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.
To your example in http://jsfiddle.net/030j27LL/4/: there you have #container {z-index: 3}
which is the first child of ''. .cp-color-picker
is 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.
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)
- Color picker does not popup in latest jQuery (3.1.0) HOT 4
- Clicking outside picker doesnt close it when called from floated element HOT 4
- Close color picker HOT 8
- Can't change default opacity HOT 2
- Suggestion: Setting z-index when opening colorPicker HOT 1
- Setting the colour programmatically from outside the picker HOT 4
- Getting a tinycolorpickers input value
- Set initial color HOT 6
- Close with escape button HOT 4
- Easy way to keep open at all times?
- Rango 0-255 for alpha values HOT 4
- Support rrggbbaa? HOT 3
- Value with auto-correct? HOT 2
- configure the alpha box to display a grid
- Input Event Listeners don't work
- update npm to lastet
- Add additional classnames?
- jQuery.fn.offset() requires a valid DOM element
- When I click on a different color input while the picker is already open, it sometimes transfers the value. HOT 1
- emptying input value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinycolorpicker.