I'm not sure if this is possible, but it may be. What I wnt to do is center a div tag vertically; I have the div tag centered horizontally, but I can't figure out how I can vertically center it. I want the method to work on multiple screen, like 19:6 and 5:4 resolutions fro example, they should be perfectly centered. Sorry if I'm repeating myself, but here is some code so you can get an idea of what I have. Also, I don't want it to scale with the window size, I want it to be a fixed size.. any help on that? Thanks!
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Test Document</title>
<style>
.wrapper {
width: 50%; //
display: inline-block;
position: relative;
margin-left: auto;
margin-right: auto;
}
div
{
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
align:center;
background-color:#666666;
padding-left: 30px;
padding-right: 30px;
padding: 20px 20px;
}
</style>
</head>
<body>
<div class="wrapper" align="center">
<p>Click the button to calculate the square of your first number, and the halves of your second number.</p>
</div>
</body>
</html>
P.S. Is it weird I carry my flash-drive around with me in my pocket?
Some stuff is weird, and I most likely don't need some of it, this is a highly non revised test version .