center a div relative to the screen code example
Example: how to middle fixed element
position: fixed;
top: 0;
z-index: 100;
left: 50%;
transform: translateX(-50%);
position: fixed;
top: 0;
z-index: 100;
left: 50%;
transform: translateX(-50%);