?
Solved

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

Posted on 2008-10-08
2
Medium Priority
?
3,079 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 920 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

Technology Partners: 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

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…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

801 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