Here is the CSS:
#indicator {
position: fixed;
top: 40%;
width: 150px;
margin: 0 auto;
z-index: 1000;
padding: 2px;
background: #fff;
}
Whenever I apply it, the content stays hard left, not centered. I have tried it with block elements (such as P
and H1
), and inline elements (such as span
).
When I check the HTML inspector I can see that the rules are being applied as expected, and none are being overridden.