I'm having trouble getting this specific CSS to work on an element:
.element {
position: absolute;
left: 50%;
margin-left: -285px // the element has width: 500px;
}
This element is contained within another div that also has an absolute position.
For some reason, the browser is not applying the margin-left as expected, and I can't figure out why!
To better illustrate my issue, I created a CODE PEN for reference -> http://codepen.io/anon/pen/KpKrmN
Any assistance would be greatly appreciated. Thank you!