I saw many example of how to centerize div to middle of page, but in all the examples the size of the divs was fixed.
How to put div in center of page with unknown size of div height?
(the gray div in the middle)
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style>
html,body{
margin: 0;
padding: 0;
border: 0;
}
body{
background-color: transparent;
overflow: hidden;
font-family: "Helvetica"
;
color: #359115;
font-weight:bold;
}
#wrapper {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
}
#container {
background-color: #dddddd;
/*height: 100%;
widows: 100%;*/
margin: 0,auto;
text-align: center;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="container" align="center">
<span class="currency">$ </span><span class="integer">4,080,048.</span><span class="decimal">00</span>
</div>
</div>
</body>
</html>
EDIT:
I need that to work for a webView in Android and IOS, from some reason the numbers are always appear at the top of the browser.
NOTE: The browser are not full screen!
The screenshot is in my other question