you might have to include the width of your background image in the class:
#bg {
width:100px;
height:100px;
background-image:
url('../images/mbg.jpg');
}
of course those numbers are examples...
sometimes background colours and images won't render if there is no content. place a space bar in there if this is so: <div class="x"> </div>