How To: Make your website float in the center of a webpage

5 06 2012

So when you make a website on Dreamweaver all of your content tends to stick to the left side of the webpage. There is one quick and easy fix to this problem. It only takes three Steps!


1. You are going to create a Div around everything in the body and give it the id: Container

<div id=”Container”>

2. You have to close the Div at the end of the code but before you close out the body!


3. Go up to the top of your code and inside of the style tags and copy and paste the code below. You have to adjust the height and width to the size of your webpage (THIS HAS TO BE THE EXACT SIZE OR IT WONT WORK).

height: 700px;
width: 900px;
position: relative;
margin:0 auto;

Now you are done and your Dreamweaver website should be floating in the middle of your browser! Thanks and subscribe for more,





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: