No replies
bunny1
Offline
newbie
Last seen: 12 years 4 weeks ago
Joined: 2009-11-03
Posts: 1
Points: 2

I have a page but it stretches across the screen vertically and horizontally and therefore there are 2 scrollbars. However the entire page is on the left hand side and there is no need for the extra space to the right of it or below it.
I have aligned it to the center but i cant understand why all this extra space appears.
Im sure its something im missing in my code.
Here is the style sheet

@charset "utf-8";

body {
margin:0px auto;
padding:0px;
text-align: center;
background: #96B4CE;
}
* {
margin: 0;
padding: 0;
border: 0;
}
#wrap {
background:#96B4CE url(images/bg2.jpg) no-repeat;
background-position: top;
background-position: center;
text-align:center;
width: 1018px;
height:1106px;
margin: 0 auto;
padding: 0;
}
#top {
position:relative;
left:305px;
top:6px;
clear: both;
}
#nav {
margin: 0px auto 0;
position:relative;
clear: both;
top: -4px;
}
#welcome {
margin: 0px auto 0;
position:relative;
clear: both;
top: -4px;
left: 4px;
}
#main {
margin: 0px auto 0;
position:relative;
float:left;
left:160px;
top:-120px;
clear: both;
}
#search {
left:270px;
top:-156px;
z-index:2;
display: inline;
position:relative;
clear: both;
}
#Haves {
position:relative;
left:-57px;
top:-50px;
z-index:2;
clear: both;
}
#Wants {
position:relative;
left:68px;
top:-80px;
z-index:2;
clear: both;
}
#banner {
position:relative;
left:219px;
top:-200px;
clear: both;
}
#footer {
position:relative;
left:152px;
top:-120px;
clear: both;
}

.style1 {font-family: "Arial Rounded MT Bold"; font-size: x-small; color: #FFFFFF;}
.style2 {font-family: "Arial Rounded MT Bold"; font-size: small; color: #FFFFFF}
.style3 {font-family: "Arial Rounded MT Bold"; font-size: small; color: #999999}
.style4 {font-family: "Arial"; font-size: 11px; color: #747474}

here is the html page

Inafrenzy

Join!   ¦   Sign In   ¦   Help

Recently Added Haves

Recently Added Wants

 

 

 

 




 

unfortunately i do not have access to my ftp right now so i cannot upload the pages.
i will be able to upload in a few hours if that will help to understand what is going on

thanks in advance