Solved

Aligning Panel In Screen Centre ASP.NET

Posted on 2011-03-12
5
2,067 Views
Last Modified: 2012-05-11
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
Comment
Question by:cehrnow
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:mayankagarwal
ID: 35119103
<div align="center">
<asp:panel id="panel1">
</asp:panel>
</div>
0
 
LVL 5

Expert Comment

by:mayankagarwal
ID: 35119136
yes it is possible to auto size. But in that case you should not use the width/height property.
0
 

Author Comment

by:cehrnow
ID: 35120949
Can you elaborate ?
0
 
LVL 5

Accepted Solution

by:
mayankagarwal earned 500 total points
ID: 35125556
to align panel in the center put it into <div></div> tag and and set align property to center
0
 

Author Closing Comment

by:cehrnow
ID: 35126694
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question