It's better if I just showed you an image and an example.
Here is what I currently have with DIV's
This is a Table sample
<table border="0" cellspacing="0" cellpadding="0"> <tr> <td background="images/bg_left.png"> </td> <td background="images/bg_back.jpg"> </td> <td background="images/bg_right.png"> </td> </tr> </table>
I want that to turn into Div's and CSS
I am currently using this CSS code
#BG_container {
margin-right: auto;
margin-left: auto;
width: 930px;
}
#BG_back {
background-repeat: repeat-x;
margin-right: auto;
margin-left: auto;
height: 100px;
background-image: url(images/bg_back.jpg);
width: 900px;
}
#BG_back-left {
display: block;
height: 100px;
float: left; overflow: hidden;
width: 15px;
background-repeat: repeat-y;
background-image: url(images/bg_left.png);
}
#BG_back-right {
display: block;
float: right; overflow: hidden;
background-repeat: repeat-y;
height: 100px;
background-image: url(images/bg_right.png);
width: 15px;
}
Html:<div id="BG_container"> <div id="BG_back-left">left</div> <div id="BG_back-right">right</div> <div id="BG_back">hi<br>hi2</div>
I can easily do this with table's but how can I do this with DIV's and CSS
