Layer using z-index


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. To get layers overlapping each other you need to use the z-index command. Add z-index: 1 in with the positioning code and this element will appear above everything without this command. If you want something else to go over this layer too, add z-index: 2 and so on. The higher the index, the closer the div will appear to the front of the page.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.