I am creating a HTML5 web app for Android and iphone.
To keep things simple I have a 'master' page and a 'login' page.
This is my markup:
<div class="container-fluid  pagination-centered" style="width: 100%; height: 100%; margin: auto; background-color: yellow;">
    <div class="navbar navbar-inverse navbar-fixed-top" id="Header" style="min-height: 37px;">
        <div class="col-xs-12">
            <!--Header stuff goes here-->
        </div>
    </div>
    <div class="row" id="Contents" style="height: 100%;">
        <div class="col-xs-12" style="vertical-align: middle;">
            <div id="PIN" style="display: none;height: auto;">
            </div>
            <div id="Manager" style="display: none;height: auto;">
            </div>
            <div id="LogIn" style="background-color: white;height: auto;">
            </div>
            <div id="Live" style="display: none;height: auto;">
            </div>
        </div>
    </div>
    <div class="navbar navbar-inverse my-footer navbar-fixed-bottom" style="height: 22px; background-color: black;">
        <div class="container-fluid" style="height: 22px">
            <div id="rowFooter" style="width: 100%">
               <!--footer stuff goes here-->
            </div>
        </div>
    </div>
</div>
The markup for my LogIn.html page is this:
<html>
<body>
    <div class="row">
        <div id="lblSubHeader" class="col-xs-12" style="color: white;padding-left:5px; float: left; font-size:large;text-align:left;
font-weight: 600; width: 100%; overflow: hidden">Register</div>
    </div>
    <div class="row" id="row1" style="margin-top:15px;">
        <div class="col-xs-12 navbar-text text-left" style="color: #999999;margin-bottom:3px; font-weight: bold;
            margin-left: 5px; width: 100%; font-size: smaller;">
            Email address
        </div>
    </div>
    <div class="row" id="Div1">
        <div class="col-xs-12">
            <input id="txtUsername" type="text" class="form-control input-md" style="width: 100%;margin-bottom:3px; " />
        </div>
    </div>
    <div class="row" id="Div2">
        <div class="col-xs-12 navbar-text text-left" style="color: #999999;margin-bottom:3px;  margin-top:3px; font-weight: bold;
            margin-left: 5px; width: 100%; font-size: smaller;">
            Password
        </div>
    </div>
    <div class="row" id="Div3">
        <div class="col-xs-12">
            <input id="txtPassword" type="password" class="form-control input-md" style="width: 100%" />
        </div>
    </div>
    <div class="row" id="Div4">
        <div style="left: 0px;  float: right;padding-top:45px;" class="col-xs-12">
            <a href="#" id="btnOKLogIn" class="button"><img src="../Common/Images/Buttons/GO.png" /></a>
        </div>
    </div>
</body>
</html>
<script type="text/javascript" src="../Mobile/Scripts/LogIn.js"> 
</script>
I want to center pages in the middle of the container DIV.
With the markup above the div 'page' is always vertically up the top of the page.
I have gone through several examples found on Google and none seem to work. The latest one I used is what is above.
 
     
    