unknown87 Posted October 26, 2008 Share Posted October 26, 2008 <style type="text/css"> <!-- #header { height: 100px; } #navigation { width: 150px; height: 400px; } #main { } #footer { height: 100px; } --> </style> <div id="header">Header Content</div> <div id="navigation">Navigation Content</div> <div id="main">Main Content</div> <div id="footer">Footer Content</div> I am having problems with the layout of my page. At the moment, the "main" div tag is being placed under the "navigation" div tag by default. But i need the "main" div tag to be in the centre of all the other div tags. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/130183-page-layout/ Share on other sites More sharing options...
emehrkay Posted October 26, 2008 Share Posted October 26, 2008 You need to look into the float attribute. http://css.maxdesign.com.au/floatutorial/ Quote Link to comment https://forums.phpfreaks.com/topic/130183-page-layout/#findComment-675095 Share on other sites More sharing options...
unknown87 Posted October 26, 2008 Author Share Posted October 26, 2008 Wow - Nice tutorial. Thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/130183-page-layout/#findComment-675099 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.