With css, I'm trying to center div Wrapper on screen. It works on Mozilla but it doesn't work on IE 11. I don't know why. My web page is running in a Windows Server 2008.
css
div#wrapper
{
width: 1250px;
min-width:1250px;
max-width:1250px;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom:0;
margin-left: auto;
margin-right: auto;
margin: auto;
border: 2px solid red;
}
aspx:
<head runat="server">
<title></title>
<link href="Styles/Site.css" type="text/css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div id="wrapper">
HELLO
<br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
</body>
Image of web page in Mozilla. As you see, div is centered on screen:
Image of web page in IE11. As you see, div is NOT centered on screen: