I came across this code in Style Master
If #banner has a left and right margin of 150 them surely 300px + 468px is bigger than the container content width of 760px?
Am I right on this?
/* -- container --*/
#container {
width: 760px;
height: 1%;
margin: 30px auto;
padding: 0;
text-align: left;
}
/* -- banner --*/
#banner {
position: relative;
width: 468px;
height: 79px;
margin: 0 150px;
padding: 0;
background: transparent url(images/banner.gif) no-repeat 0 0;
}
If #banner has a left and right margin of 150 them surely 300px + 468px is bigger than the container content width of 760px?
Am I right on this?
/* -- container --*/
#container {
width: 760px;
height: 1%;
margin: 30px auto;
padding: 0;
text-align: left;
}
/* -- banner --*/
#banner {
position: relative;
width: 468px;
height: 79px;
margin: 0 150px;
padding: 0;
background: transparent url(images/banner.gif) no-repeat 0 0;
}