How to make a website to be center of the page.. ? please Advice.. We can do in Dreamweaver, or is there any code.. or how its done?
Easy if you have a table based layout. just set the width of the biggest (main) table to <100% or <1000px and write align="centre" . that's it!
Another solution, if you want that all content to be centered: Put after <body> this: <div style="width: xx px; margin: 0 auto 0 auto;"> Code (markup): And before </body this: </div> [/div> And change xx px with your width. It will work. Code (markup):
Well you could wrap the entire of the site in a div, like so, html, <div id="center"> <!-- Your contents here --> </div> Code (markup): Then in your css file, #center { margin: auto; text-align: center; width: 50%; } Code (markup): The text-align is required for the site to center in IE6, the width defines how wide the site will be...
Text-Align is required for Internet Explorer 5. When in standards mode, Internet Explorer 6 will use margin: 0 auto; combined with a width (like the other browsers do). Fortunately this is VERY easy to do - just use a complete and proper DOCTYPE declaration with nothing (not even white space) above it.