R4nk3d Posted October 16, 2008 Share Posted October 16, 2008 Hi, i have a website made out of all divs, no tables. the layout is like this: ------------------------------------ | Header | ------------------------------------ | | | Context | | | |----------------| But what i need to do, is get the context area in the center of the page/center under header. i have tryed every way i could find on here, but it still doesnt work. im using css/html so if you could help id really appreciate it. any ideas are appreciated. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/128775-solved-centering-a-div/ Share on other sites More sharing options...
CroNiX Posted October 16, 2008 Share Posted October 16, 2008 css: .center { margin:0 auto; } Quote Link to comment https://forums.phpfreaks.com/topic/128775-solved-centering-a-div/#findComment-667559 Share on other sites More sharing options...
R4nk3d Posted October 16, 2008 Author Share Posted October 16, 2008 Nevermind! Got it! Thanks Quote Link to comment https://forums.phpfreaks.com/topic/128775-solved-centering-a-div/#findComment-667581 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.