HTML CSS examples for CSS Property:background
Set z-index on element with transparent background
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> textarea {<!--from www . jav a 2 s . c o m--> background: url(https://www.java2s.com/style/demo/InternetExplorer.png) repeat scroll 0 0 transparent; } #txt1 { position: absolute; top: 0; left: 0; z-index: 0; } #txt2 { position: relative; z-index: 1; } </style> </head> <body> <div> <textarea id="txt1">some text</textarea> <textarea id="txt2"></textarea> </div> </body> </html>