1.11M Members

Height 100% not working

 
0
 

The title says it all. I have looked all over and can't find a solution.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <style type="text/css">
        body, html
        {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow:hidden; 
            position:relative
        }

    </style>
    <title></title>
</head>
<body bgcolor="#000000" text="#FFFFFF" link="#9690CC" vlink="#FFFF0F" style="width: 100%;
    height: 100%">
    <form id="form1" runat="server">
    <div style="height: 100%; width: 100%;">
        <asp:GridView ID="GridView1" runat="server" PageIndex="1" align="center" Font-Size="X-Large"
            BackColor="Black" CellPadding="5" ViewStateMode="Enabled" Width="100%">
        </asp:GridView>
    </div>
    </form>
</body>
</html>

The width works just fine. I removed scrolling because I do not want people to scroll down I want this to just sit a screen at 100% because the gridview changes heights a lot. And I want it to adjust to the screen depending on how many rows are on it at the time.

Thanks.

Question Self-Answered as of 1 Year Ago
 
0
 

Care to share your solution?

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: