Position a button inside a panel in bottom center (asp.net)?

For example write like this if you have position absolute : button{ position:absolute; margin-left:-100px; left:50%; width:200px; bottom:5px; } Note: give margin-left half of the width of the button.

For example write like this if you have position absolute: button{ position:absolute; margin-left:-100px; left:50%; width:200px; bottom:5px; } Note: give margin-left half of the width of the button.

Please explain why I downvoted thanks :) – sandeep yesterday I didn't ,it was someone else. You have the right answer but without the minus in the "left:-50%". It is supposed to be left:50%.

So thank you :). I can't mark the V for the right answer because people will copy paste it without reading my comment and get it wrong...., so can you edit it? – Rodniko yesterday @Rodniko; it's a typo mistake :) – sandeep yesterday I edit it , thank you ;) – Rodniko yesterday.

Instead of: margin-left:50%; margin-right:50%; try margin-left:auto; margin-right:auto.

Doesn't work , the button appears at the bottom left corner. But thanks anyway :) – Rodniko yesterday If you could post your actual code or give us a link to the test site we might be able to help you more. – Kevin Anthony Oppegaard Rose yesterday You could also try: text-align: center; – Kevin Anthony Oppegaard Rose yesterday.

You should use margin : 0 auto; instead of margin-left and margin-right It's mean is 0 px margin for top and bottom (you can set it too! ) , and auto margin for left and right. It will center, object.

And remove position : absulote; live example.

Doesn't work, the button appears on the top left corner. – Rodniko yesterday try adding text-align:center; to your panel. – Eray yesterday.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions