I use this CSS to display a fixed block on the left side of my web page. This is a red box with the words SPECIAL EVENT in white, represented by an image.
.special_event{
display:block;
position: fixed;
width: 52px;
height: 29px;
background:url(../images/special_icon.png);
left:10.5%;
}

But when the screen resolution is more than 1200 pixels, the div is removed from the main content.

I would like the div to special_eventstay immediately adjacent to the main content regardless of screen resolution, as seen in the first shot. What is wrong and how to fix it?
source
share