lmartinLMV
02-23-2010, 04:59 AM
I need to create a layout like this:
<div id="wrapper" class="clearfix">
<div id="wrapper-left">
</div>
<div id="wrapper-center">
<!-- content -->
</div>
<div id="wrapper-right">
</div>
</div>
The sole purpose of #wrapper-left and #wrapper-right is to show a background image on the sides of the content, that is, there is no real content within them.
This is what I've made with CSS:
#wrapper {
width:1048px;
margin: 0 auto;
}
#wrapper-left {
float:left;
width:44px;
height:100%;
background:url(../images/header_r1_c2.jpg) top right no-repeat;
}
#wrapper-center {
float:left;
width:960px;
}
#wrapper-right {
float:left;
width:44px;
height:100%;
background:url(../images/header_r1_c4.gif) top left no-repeat;
}
Well, the problem is that I cannot get that the left and right blocks fill the room I assigned them so that their backgrounds are correctly displayed. They act as if they had no room assigned. What can I do then?
<div id="wrapper" class="clearfix">
<div id="wrapper-left">
</div>
<div id="wrapper-center">
<!-- content -->
</div>
<div id="wrapper-right">
</div>
</div>
The sole purpose of #wrapper-left and #wrapper-right is to show a background image on the sides of the content, that is, there is no real content within them.
This is what I've made with CSS:
#wrapper {
width:1048px;
margin: 0 auto;
}
#wrapper-left {
float:left;
width:44px;
height:100%;
background:url(../images/header_r1_c2.jpg) top right no-repeat;
}
#wrapper-center {
float:left;
width:960px;
}
#wrapper-right {
float:left;
width:44px;
height:100%;
background:url(../images/header_r1_c4.gif) top left no-repeat;
}
Well, the problem is that I cannot get that the left and right blocks fill the room I assigned them so that their backgrounds are correctly displayed. They act as if they had no room assigned. What can I do then?