
Originally Posted by
SAS25
Hey guys. I've imported my .psd website template layout in Adobe Dreamweaver CS5 and I'm having a problem trying to center the layout! In the page properties I have clicked on 'middle' as well as 'Absolute Middle' and each time I have previewed in my browser, it is still on the left hand side. Any ideas?
Wrap your page in a div tag with the ID of #wrapper.
Then create the CSS rule;
Code:
#wrapper {
width: ???px;
margin: 0 auto;
}
In your stylesheet.
Word of advice... Importing a PSD from Photoshop is NOT how to design a website (whatever pre-pubescent Americans on YouTube might tell you)