Reputation: 61
on the site JN-Racing i´ve add a div on the left side but when I resize the Browser the div goes about the content. Thanks for all tipps
Upvotes: 0
Views: 810
Reputation: 773
Try this:
#bg_right {
background-image: url("images/bg_rechts.jpg");
background-repeat: no-repeat;
float: right;
height: 935px;
position: relative;
width: 258px;
z-index: -1;
}
#bg_left {
background-image: url("images/bg_links.jpg");
background-repeat: no-repeat;
float: left;
height: 935px;
position: relative;
width: 258px;
z-index: -1;
}
#wrapper {
height: 0;
margin: auto;
text-align: left;
width: 1024px;
}
body {
height: 100%;
margin: auto;
width: 1540px;
}
If you limit the width of the body, it shall work like a charm! (:
Upvotes: 1