hi guys!
I need to make a rounded corner "box" which can be assigned variable height depending of the text that will be in the box.
So, I have created 2 images: a top and a bottom image that are both 125 px high (the have to be that high because the box background is a gradient ) and have 4 rounded corners.
this is the css code that I have used:
and this is the html:
The problem is that the default background color that will have to fill the space between the two images is also appearing under the rounded corners and it looks horrible!
Could anyone tell me how could I make the background color to appear with some 10px lower from the top and bottom such that the corners will look ok?
Please take a look at the attached picture to know what I'm talking about
Thanks,
Vlad
I need to make a rounded corner "box" which can be assigned variable height depending of the text that will be in the box.
So, I have created 2 images: a top and a bottom image that are both 125 px high (the have to be that high because the box background is a gradient ) and have 4 rounded corners.
this is the css code that I have used:
Code:
#boxinpage{float: left; display: inline; width: 580px; margin-left: 5px; margin-top: 10px; }
.container-1 {
background: #f3f3f3 url(images/bg/reviews/top.gif) top no-repeat;
}
.container-2 {
background: url(images/bg/reviews/bottom.gif) bottom no-repeat;
}
.container-3 {
padding: 23px 5px 10px 5px;
}
and this is the html:
Code:
<div id="boxinpage">
<div class="container-1">
<div class="container-2">
<div class="container-3">
Content goes here....
</div>
</div>
</div>
</div>
The problem is that the default background color that will have to fill the space between the two images is also appearing under the rounded corners and it looks horrible!
Could anyone tell me how could I make the background color to appear with some 10px lower from the top and bottom such that the corners will look ok?
Please take a look at the attached picture to know what I'm talking about
Thanks,
Vlad







