Thread:Project:Support desk/How do I keep a mediawiki div element centered horizontally?

I cant get this div to stay centered in my mediawiki wiki. Is thre a way to do this? the code above doesnt do anything. it just stays in place. Itried using a method that has workd efore. Is there anything special I need to do when modifying mediawiki div's?

#searchInput { width: 50%; height: 40px; z-index: 1000; border: 0; display: block; text-align: center; margin-left: 10px auto; margin-right: 10px auto; position: absolute; top: -12em !important; left: 1em !important; color: #FF7F27; background: transparent; font-size: 85%; -webkit-appearance: none;/* this should Work */ }