Question

I am using this piece of code in order to have a "Sale" ribbon on top of an image. The problem is, every time I refresh the page the ribbon appears, as it should, however, after half a second the ribbon disappears, no where to be found.

Here is my code:

width: 85px;
height: 88px;
overflow: hidden;
position: absolute;
top: -3px;
right: -3px;

Is it the position that is the problem? Or could it be something else?

Was it helpful?

Solution

Your div with id="wrap" has a z-index of 9999 while the ribbon has a z-index of 1.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top