I'm a backend developer and my front end skills are weak, trying to create an up pointing arrow that should be attached to an info box.
My current margin settings, displays fine on most monitors.

However on my IMAC I see a gap (2560-by-1440 resolution)

How can I state a conditional settings? if display is less than 1920x1080 margin-top should be -1.5% if more use -1%
Here is the css for my arrow.
.info-box:after {
content: ' ';
width: 0px;
height: 0px;
border-top: 10px solid transparent;
border-left: 10px solid transparent;
border-bottom: 20px solid;
border-bottom-color: #FFFFFF;
border-right: 10px solid transparent;
margin-top: -1.5%;
left: 8%;
position: absolute;
z-index: 10000;
}
Thank you