mikacruz
Mar 3rd, 2009, 12:16 PM
Hello All,
I have two colums (left col and right col)
In the right col, I want to have a background image for the content, but also a different one for the bottom.
However if I apply a bg to my #right_col
then the bg doesnt work for my #right_col_btm
What is the best way to get that bottom image always stand below the content of my right col bearing in mind that it must be relative to that right col and not to the overall main. Is there a special function to tell the rgt_btm to cover the bg of right_col? or what would be the simplest, cleanest option? (thanks a lot for your help)
CSS
#right_col
{
width: 626px;
position: relative;
background-image: url("/images/bg_rgt.gif");
}
#right_col p
{
padding-top: 0px;
padding-bottom: 0px;
padding-left: 15px;
padding-right: 30px;
}
#right_col h1
{
padding-top: 0px;
padding-bottom: 0px;
padding-left: 15px;
padding-right: 30px;
}
#rgt_btm
{
background-image: url("/images/bg_rgt_btm.gif") no repeat;
width: 625px;
height: 22px;
}
HTML
<div id="right_col">
<h1>content</h1>
<p>content</p>
<div id="rgt_btm"></div>
</div>
I have two colums (left col and right col)
In the right col, I want to have a background image for the content, but also a different one for the bottom.
However if I apply a bg to my #right_col
then the bg doesnt work for my #right_col_btm
What is the best way to get that bottom image always stand below the content of my right col bearing in mind that it must be relative to that right col and not to the overall main. Is there a special function to tell the rgt_btm to cover the bg of right_col? or what would be the simplest, cleanest option? (thanks a lot for your help)
CSS
#right_col
{
width: 626px;
position: relative;
background-image: url("/images/bg_rgt.gif");
}
#right_col p
{
padding-top: 0px;
padding-bottom: 0px;
padding-left: 15px;
padding-right: 30px;
}
#right_col h1
{
padding-top: 0px;
padding-bottom: 0px;
padding-left: 15px;
padding-right: 30px;
}
#rgt_btm
{
background-image: url("/images/bg_rgt_btm.gif") no repeat;
width: 625px;
height: 22px;
}
HTML
<div id="right_col">
<h1>content</h1>
<p>content</p>
<div id="rgt_btm"></div>
</div>