Hope that helps I'm a newbie at this and I'm trying to figure out what I'm doing wrong. I want to centre everything within a div, but it won't budge no matter what I do. , Thank you for all your suggestions! This is what I've ended up doing:
Hope this helps Ok. I looked at your original jsfiddle and tried removing the 270px margin constraint in your fill div, as you said the bottom fill behaved wrongly in IE. I see what you mean, in IE9, your height was WAY bigger than the top fill div. I removed this constraint and it started behaving properly in IE9. http://jsfiddle.net/fLGUh/3/ BTW, it also works the same in IE7. Also, your div id="fill" should have been class="fill".
CSS centering stuff
By : allanmcd
Date : March 29 2020, 07:55 AM
this will help wrap the button within a div and make the div have text-align:center. like so: