Solved

Asp.net Panel height not working with percentage (%)

Posted on 2008-10-08
2
2,984 Views
Last Modified: 2012-06-21
I am developing asp.net(2.0) AJAX enabled website. In my page i am having gridview inside panel. My Page height and width are assigned with percentage.
The problem is that the panel height is working only with pixel. I do not want set the height in pixel because while resizing it will be static. How to set panel height in percentage (%).
If the gridview has more no of rows it is breaking my page. panel scrollbar is already set to auto. i want to restrict the height of the panel with in the window. Is working fine with pixel. how to solve this issue with percentage.
Any help would be greatly appreciated.  
0
Comment
Question by:balajime
2 Comments
 
LVL 8

Accepted Solution

by:
rodmjay earned 230 total points
ID: 22674249
this is a strange thing with html in general... try this...

set the html to height: 100%
set the body height: 100%
set the form height: 100%

and any other element between your panel and the form
0
 

Author Closing Comment

by:balajime
ID: 31504464
Thanks a lot jay. This really sucks for me long time. u done it.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

791 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