None of these seem to have worked for me but I’ve found a slightly dirty solution which seemed to do the trick:
top: 49.9%;
left: 49.9%;
-webkit-transform: translate(-50.1%, -50.1%);
transform: translate(-50.1%, -50.1%);
More Related Contents:
- How do I re-trigger a WebKit CSS animation via JavaScript?
- Set Webkit Keyframes Values Using Javascript Variable
- How to use CSS (and JavaScript?) to create a blurred, “frosted” background?
- HTML book-like pagination
- programmatically changing webkit-transformation values in animation rules
- Webkit and jQuery draggable jumping
- webkit-transform overwrites z-index ordering in Chrome 13
- Freeze Header until Irrelevant (HTML, CSS and JS)
- Close ad to continue as free user?
- How to add a black shadow on top of a div block with background image?
- How to generate a simple popup using jQuery
- How to get a style attribute from a CSS class by javascript/jQuery?
- HTML selected option background-color CSS style
- How to create a sticky navigation bar that becomes fixed to the top after scrolling
- Access CSS variable from javascript [duplicate]
- Force “landscape” orientation mode
- Use :hover to modify the css of another class?
- width/height after transform
- modify a css rule object with javascript [duplicate]
- Convert Text to Image using javascript [closed]
- “pointer-events: none” does not work in IE9 and IE10
- Using CSS3 Animations in IE9+
- How to make jQuery to not round value returned by .width()?
- Dark mode flickers a white background for a millisecond on reload
- Preloading @font-face fonts?
- collapse and expand tabs jquery / simple accordion
- How to trigger CSS “hover state” using Javascript? [duplicate]
- Gaussian Blur onHover Using jQuery
- Add CSS styled marker to google maps
- using javascript to mark a link as visited