Ryan55
11-20-2010, 01:22 PM
Hello,
I have been coding a layout and came to a problem in which the bit on the right is half the size of the same bit on the left whereas it should be the same size.
The link is - http://www.extremehabbo.com/extremev2habbo
The HTML is
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>ExtremeHabbo</title>
</head>
<body>
<div id="container">
<div id="banner"><img src="http://www.freewebs.com/habbo-planet-sg/unofficial.gif" /></div>
<div id="floatleft">
<div id="left">
<div id="side_main_top"></div>
<div id="side_main_mid"><br /><br /></div>
</div></div>
<div id="floatright">
<div id="right">
<div id="mover">
<div id="side_main_top"></div>
<div id="side_main_mid"><br /><br /></div>
</div></div></div>
<div id="center">
Hi
</div>
</div>
</body>
</html>
The CSS is
body {
background: url(images/bg.gif);
margin: 20px 0px 0px 0px;
}
#floatleft {
float: left;
}
#floatright {
float: right;
}
#container {
width:1000px;
margin-left: auto;
margin-right: auto;
}
#left {
width: 228px;
height: auto;
}
#center {
width: 448px;
height: auto;
}
#right {
width: 228px;
height: auto;
}
#mover {
margin-left: -98px;
}
#banner {
background: url(images/eh.png);
background-repeat: no-repeat;
width: 902px;
height: 151px;
padding-top: 35px;
padding-left: 30px;
}
#side_main_top {
background: url(images/eh_r3_c2.png);
width: 228px;
height: 15px;
margin-top: -35px;
}
#side_main_mid {
background: url(images/eh2.png);
width: 228px;
height: auto;
}
what is the problem and how can i fix it?
I have been coding a layout and came to a problem in which the bit on the right is half the size of the same bit on the left whereas it should be the same size.
The link is - http://www.extremehabbo.com/extremev2habbo
The HTML is
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>ExtremeHabbo</title>
</head>
<body>
<div id="container">
<div id="banner"><img src="http://www.freewebs.com/habbo-planet-sg/unofficial.gif" /></div>
<div id="floatleft">
<div id="left">
<div id="side_main_top"></div>
<div id="side_main_mid"><br /><br /></div>
</div></div>
<div id="floatright">
<div id="right">
<div id="mover">
<div id="side_main_top"></div>
<div id="side_main_mid"><br /><br /></div>
</div></div></div>
<div id="center">
Hi
</div>
</div>
</body>
</html>
The CSS is
body {
background: url(images/bg.gif);
margin: 20px 0px 0px 0px;
}
#floatleft {
float: left;
}
#floatright {
float: right;
}
#container {
width:1000px;
margin-left: auto;
margin-right: auto;
}
#left {
width: 228px;
height: auto;
}
#center {
width: 448px;
height: auto;
}
#right {
width: 228px;
height: auto;
}
#mover {
margin-left: -98px;
}
#banner {
background: url(images/eh.png);
background-repeat: no-repeat;
width: 902px;
height: 151px;
padding-top: 35px;
padding-left: 30px;
}
#side_main_top {
background: url(images/eh_r3_c2.png);
width: 228px;
height: 15px;
margin-top: -35px;
}
#side_main_mid {
background: url(images/eh2.png);
width: 228px;
height: auto;
}
what is the problem and how can i fix it?