Forum Moderators: not2easy
#container {
width: 780px;
height: 570px;
text-align: justify;
margin: 20px auto;
}
#container .rb-box {
width: 740px;
height: 540px;
background-color: #FFFFFF;
padding: 0px 20px;
margin-top: 24px;
}
#container .rb-top {
width:780px;
height:24px;
background-image: url(images/rb_top.gif);
background-repeat: no-repeat;
float: left;
}
#container .rb-bottom {
width:780px;
height: 24px;
background-image: url(images/rb-bottom.gif);
background-repeat: no-repeat;
} <div id="container">
<div class="rb-top"></div>
<div class="rb-box">
[content removed]
</div>
<div class="rb-bottom"></div>
</div> background-image: url(images/rb-bottom.gif);
background-repeat: no-repeat;
background: url(images/rb-bottom.gif) no-repeat;
by combining background image and repeat you only duplicates what is already there and I get smacked on the hand by my validator for not using the correct format
the chances of making a mistake is so much more