Solved

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

Posted on 2008-10-08
2
3,007 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using CK editor in iframes 5 27
ASP.NET Calendar Control 5 25
bootstrap css color change 10 21
How to get chosen background-color on every line? 10 20
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

749 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