Aligning Panel In Screen Centre ASP.NET

How do you align an ASP.NET panel in the centre of the screen taking into account the screen resolution ? Have tried the javascript method of obtaining screen size which doesn't work. Is it possible to put an ASP panel in an HTML table which resizes automatically using % settings for width/height ?
cehrnowAsked:
Who is Participating?
 
mayankagarwalConnect With a Mentor Commented:
to align panel in the center put it into <div></div> tag and and set align property to center
0
 
mayankagarwalCommented:
<div align="center">
<asp:panel id="panel1">
</asp:panel>
</div>
0
 
mayankagarwalCommented:
yes it is possible to auto size. But in that case you should not use the width/height property.
0
 
cehrnowAuthor Commented:
Can you elaborate ?
0
 
cehrnowAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.