Ninjakreborn Posted March 13, 2007 Share Posted March 13, 2007 I don't understand one thing. lately I take a page, I give it a background color (body). I then create a div, and center it. The full centering in all browsers is done with body { text-align:center; } #wrap { margin-left:auto; margin-right:auto; } ok, all of that is done. Awhile back I use to be able to get the upper part of the div, flush with the top of the browser. lately firefox hasn't been listening to me (I guess since I upgraded versions), is there a surefire way to get a center div, that is centered, to go flush with the top, a way that works effectively, and correctly in all browsers (I tried removing all padding, and margin from there. I want to do this "without" continuously having to use a border up there to get it to snap into place, any advice? Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted March 13, 2007 Author Share Posted March 13, 2007 Actually if I go to disable browser default styles, then it works fine. So there is some style firefox is applying to this, I am unsure of. If I can find out what that is, I can get it working properly. Any advice. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted March 13, 2007 Author Share Posted March 13, 2007 http://tantek.com/log/2004/undohtml.css nevermind, this fixed it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.