Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2430
  • Last Modified:

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 ?
0
cehrnow
Asked:
cehrnow
  • 3
  • 2
1 Solution
 
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
 
mayankagarwalCommented:
to align panel in the center put it into <div></div> tag and and set align property to center
0
 
cehrnowAuthor Commented:
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now