I'm new to CSS and using an online tutorial to learn how to turn my photoshop design into working html. One thing it hasn't shown me how to do is define a specific page width.
My photoshop page width is 900px and I have it so everything is centered in the middle of the page. Where do I define (in my CSS file below) that my page is 900px and all contents of the body should be within this 900px area? I added it to the body tag but that did not work out too well. Thank you for your help.
@charset "utf-8";
/* CSS Document */
*{
margin: 0;
padding: 0;
}
body{
font-family: Arial, Helvetica, sans-serif;
background:url(images/top-bg.png) repeat-x;
width:900px;
}
#logo {
position: relative;
padding: 30px 0px 0px 40px;
margin: 0 auto;
}
My photoshop page width is 900px and I have it so everything is centered in the middle of the page. Where do I define (in my CSS file below) that my page is 900px and all contents of the body should be within this 900px area? I added it to the body tag but that did not work out too well. Thank you for your help.
@charset "utf-8";
/* CSS Document */
*{
margin: 0;
padding: 0;
}
body{
font-family: Arial, Helvetica, sans-serif;
background:url(images/top-bg.png) repeat-x;
width:900px;
}
#logo {
position: relative;
padding: 30px 0px 0px 40px;
margin: 0 auto;
}