Reputation: 1061
Friends, Is it possible to keep one text box(or any other asp.net control) above another(let's say total 4 text boxes) in a .aspx page with one text box visible and other 3 invisible(I've done it in windows application)?I've tried with web page but no success?
Upvotes: 1
Views: 1945
Reputation: 34170
you must give it a z-index style with a big value, of course z-index only works if only the position style is defined too.
for example:
<input type="text" style="position:absolute;top:0px;left:0px;">
<input type="text" style="position:absolute;z-index:100;top:0px;left:0px;">
<input type="text" style="position:absolute;top:0px;left:0px;">
<input type="text" style="position:absolute;top:0px;left:0px;">
in this example the second textbox will be on top of the others
Upvotes: 3