Sukanya
Sukanya

Reputation: 1061

Is it possible to keep one text box control above another in .aspx page

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

Answers (1)

Ashkan Mobayen Khiabani
Ashkan Mobayen Khiabani

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

Related Questions