EmJayDesign
Technical User
Hi,
I am not really an experience web designer, and I kind of put together a site based on a collection of tutorials that I found online. I am having trouble centering the entire page to be centered horizontally (and preferably vertical too but I'll settle for just horizontal!) I understand that I have made all the slices, etc to be position:absolute and I know this is affecting it, but I played around with it and I cannot figure out how to do this. Here is the beginning of my code where most likely the problem is. I know it is probably messy and wrong but help me fix it up so i can center it!! Thank you!!
<style type="text/css">
<!--
#Table_01 {
position:absolute;
left:0px;
top:0px;
width:850px;
height:600px;
}
#Slice {
position:absolute;
left:0px;
top:0px;
width:850px;
height:7px;
}
#Slice002 {
position:absolute;
left:0px;
top:7px;
width:7px;
height:593px;
}
#scrols {
position:absolute;
left:7px;
top:7px;
width:836px;
height:137px;
}
#Slice004 {
position:absolute;
left:843px;
top:7px;
width:7px;
height:593px;
}
#Slice005 {
position:absolute;
left:7px;
top:144px;
width:836px;
height:413px;
}
#Slice006 {
position:absolute;
left:7px;
top:557px;
width:232px;
height:30px;
}
#home-btn {
position:absolute;
left:239px;
top:557px;
width:67px;
height:30px;
}
#gallery-btn {
position:absolute;
left:306px;
top:557px;
width:74px;
height:30px;
}
#services-btn {
position:absolute;
left:380px;
top:557px;
width:81px;
height:30px;
}
#about-btn {
position:absolute;
left:461px;
top:557px;
width:69px;
height:30px;
}
#contact-btn {
position:absolute;
left:530px;
top:557px;
width:72px;
height:30px;
}
#Slice012 {
position:absolute;
left:602px;
top:557px;
width:241px;
height:30px;
}
#Slice013 {
position:absolute;
left:7px;
top:587px;
width:836px;
height:13px;
}
#apDiv1 {
position:absolute;
left:306px;
top:16px;
width:225px;
height:119px;
z-index:1;
}
body {
background-color: #3A2B14;
background-image: url(images/blue_background.gif);
background-repeat: repeat;
}
#apDiv2 {
position:absolute;
left:7px;
top:180px;
width:836px;
height:321px;
z-index:2;
}
#apDiv3 {
position:absolute;
left:7px;
top:251px;
width:512px;
height:201px;
z-index:3;
}
-->
</style>
I am not really an experience web designer, and I kind of put together a site based on a collection of tutorials that I found online. I am having trouble centering the entire page to be centered horizontally (and preferably vertical too but I'll settle for just horizontal!) I understand that I have made all the slices, etc to be position:absolute and I know this is affecting it, but I played around with it and I cannot figure out how to do this. Here is the beginning of my code where most likely the problem is. I know it is probably messy and wrong but help me fix it up so i can center it!! Thank you!!
<style type="text/css">
<!--
#Table_01 {
position:absolute;
left:0px;
top:0px;
width:850px;
height:600px;
}
#Slice {
position:absolute;
left:0px;
top:0px;
width:850px;
height:7px;
}
#Slice002 {
position:absolute;
left:0px;
top:7px;
width:7px;
height:593px;
}
#scrols {
position:absolute;
left:7px;
top:7px;
width:836px;
height:137px;
}
#Slice004 {
position:absolute;
left:843px;
top:7px;
width:7px;
height:593px;
}
#Slice005 {
position:absolute;
left:7px;
top:144px;
width:836px;
height:413px;
}
#Slice006 {
position:absolute;
left:7px;
top:557px;
width:232px;
height:30px;
}
#home-btn {
position:absolute;
left:239px;
top:557px;
width:67px;
height:30px;
}
#gallery-btn {
position:absolute;
left:306px;
top:557px;
width:74px;
height:30px;
}
#services-btn {
position:absolute;
left:380px;
top:557px;
width:81px;
height:30px;
}
#about-btn {
position:absolute;
left:461px;
top:557px;
width:69px;
height:30px;
}
#contact-btn {
position:absolute;
left:530px;
top:557px;
width:72px;
height:30px;
}
#Slice012 {
position:absolute;
left:602px;
top:557px;
width:241px;
height:30px;
}
#Slice013 {
position:absolute;
left:7px;
top:587px;
width:836px;
height:13px;
}
#apDiv1 {
position:absolute;
left:306px;
top:16px;
width:225px;
height:119px;
z-index:1;
}
body {
background-color: #3A2B14;
background-image: url(images/blue_background.gif);
background-repeat: repeat;
}
#apDiv2 {
position:absolute;
left:7px;
top:180px;
width:836px;
height:321px;
z-index:2;
}
#apDiv3 {
position:absolute;
left:7px;
top:251px;
width:512px;
height:201px;
z-index:3;
}
-->
</style>