I'm a university student studying Computing, and one of my modules is Web & Multimedia. We have to make an e-Portfolio, so I'm using an old website I built in college and updating it. One thing that is really annoying me is there's no space between the text and border in the content section. I've tried all sorts of padding and margins, but it keeps offsetting the whole content. Can you take a look at my CSS style sheet and possibly tell me where I'm going wrong? I may need to change some other things like the fixed position of the body etc. I've only learnt the basics of HTML and CSS so it's a very basic style sheet! Thanks!
html, body {
margin:0px;
padding:0px;
background-color:#CCC;
height:100%;
width:100%;
background-image:url(../Images/os_x_lion_galaxy_hd.jpg);
background-attachment:fixed;
}
#container{
margin-left:auto;
margin-right:auto;
width:800px;
height:100%;
background-color:#CCC;
}
#header{
width:800px;
height:150px;
background-color:#CCCF;
}
#navigation{
width:800px;
}
#content{
margin-left:auto;
margin-right:auto;
width:800px;
background-color:#CCC;
}

New Topic/Question
Reply


MultiQuote






|