Solved

Aligning Panel In Screen Centre ASP.NET

Posted on 2011-03-12
5
2,122 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why JSON Array data not binding on Model ASP.NET ? 1 41
Create a Dropdown list with sub group 10 42
Access-Control-Allow-Origin 4 41
EF5 How do I stop pre-compiled views? 8 50
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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.…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

739 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