I am prepending elements with jquery. Here is what I add:

  <span class="author">AUTHOR: Ayuidasht</span>

im trying to get it to be above the other text, but it is still not working with z-index.

.author {
    color:red;
    font-family:"Drone";
    z-index:99999;
  background-font:green;
}
有帮助吗?

解决方案

Do yo mean to 'cover up' the other text? It would need to be positioned absolutely

.author {
   ...; 
  position:absolute;
}

其他提示

z-index works with position: absolute. Hope it helps!

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top