In my web page, everything looks good in Google Chrome, Firefox, and Opera, but I'm facing an issue with Internet Explorer 11.
Here is the simplified HTML:
<div class="container">
<div class="page-content">
<div id="corner"></div>
... content here
</div>
</div>
And here is a snippet of the CSS code:
.container {
margin: 0;
min-height: 100%;
}
.page-content::after {
content: "";
display: block;
height: 1px;
}
.page-content {
background: linear-gradient(137deg, transparent 121px, #ffffff 20px) repeat scroll 0 0 rgba(0, 0, 0, 0);
margin: 190px 100px 150px;
max-width: 64em;
padding: 10px 120px 145px;
z-index: 2;
}
.page-content {
margin: auto;
max-width: 64em;
padding: 0 1em 1em;
}
#corner {
background-color: #ffffff;
background-image: url("corner.png");
display: block;
height: 200px;
left: 120px;
position: absolute;
top: 20px;
width: 200px;
z-index: -1;
}
The screenshot clearly shows that the positioning of the #corner element is off in Internet Explorer.
I've been troubleshooting this for some time now as it seems to be a browser-specific issue. Any insights or suggestions are greatly appreciated!