I faced problems when I set the height of the main page to auto. that means it should be all my page will be auto fit to the table or things i have put in the website..
All of my form can auto fit when i used normal grid view or label to display my data.. Only when i used repeater, the page cannot be set automatically.. how can i solve this issue?
It will set the height to the body element to auto and you can try the div class="footer" and div class"header" to set the max heights for the elements..
Please "Marks As Answer" if any answer helped you out!
~~! FIREWALL !~~
I tried this.. it works on other form but just now for repeater. all my page can be expanded automatically, only the form with repeater cannot auto expand..
sasalyn
0 Points
6 Posts
Height of the page..
Nov 04, 2012 04:16 PM|LINK
I faced problems when I set the height of the main page to auto. that means it should be all my page will be auto fit to the table or things i have put in the website..
All of my form can auto fit when i used normal grid view or label to display my data.. Only when i used repeater, the page cannot be set automatically.. how can i solve this issue?
Afzaal.Ahmad...
Contributor
2660 Points
1039 Posts
Re: Height of the page..
Nov 05, 2012 11:37 AM|LINK
You can try using this in your .css file
body { height: auto; }It will set the height to the body element to auto and you can try the div class="footer" and div class"header" to set the max heights for the elements..
~~! FIREWALL !~~
raju dasa
Star
14320 Points
2440 Posts
Re: Height of the page..
Nov 05, 2012 12:11 PM|LINK
Hi,
try adding below css rule to ur page.
<style> html,body,form,table{ margin:0px; padding:0px; } html,body,form{ height:100%; } </style>rajudasa.blogspot.com || blog@opera
sasalyn
0 Points
6 Posts
Re: Height of the page..
Nov 06, 2012 02:58 AM|LINK
I tried this.. it works on other form but just now for repeater. all my page can be expanded automatically, only the form with repeater cannot auto expand..
thanks for the help.
sasalyn
0 Points
6 Posts
Re: Height of the page..
Nov 06, 2012 03:00 AM|LINK
This canot work also. but thanks for the help ya. =)
asteranup
All-Star
30184 Points
4906 Posts
Re: Height of the page..
Nov 06, 2012 08:24 AM|LINK
Hi,
Try this-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> <style> body { margin: 0px 0px 0px 0px; background-color: #cecbce; } .container { position: absolute; width: 80%; left: 10%; height: 100%; background-color: #a5dbff; } .header { height: 10%; } .content { background-color: #ffa6a5; height: 80%; overflow-y: auto; } .footer { height: 10%; } </style> </head> <body> <div class="container"> <div class="header"> </div> <div class="content"> <div style="height:1800px">df sdfsd</div> </div> <div class="footer"> </div> </div> </body> </html>Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog