I want the borders of my divs to look like this
outer div #info
------------------------------------------------------------
| |-----------------||-----------------||-----------------||
| | || || ||
| | || || ||
| | || || ||
| | 1 inner || 2 inner || 3 inner ||
| | div || div || div ||
| | || || ||
| | #leftpannel || #centerpannel || #rightpannel ||
| | || || ||
| | || || ||
| |-----------------||-----------------||-----------------||
|----------------------------------------------------------|
but when I put it in a browser it looks like
------------------------------------------------------------
| |-----------------||-----------------||
| | || ||
| | || ||
| | || ||
| | 2 inner || 3 inner ||
| | div || div ||
| | || ||
| | || ||
| | || ||
| | || ||
| |-----------------||-----------------||
||------------------|--------------------------------------|
| |
| |
| |
| |
| 1 inner |
| div |
| |
| |
| |
| |
|------------------|
this is my css
#rightpannel
{
width:32%;
float:right;
height:390px;
border: solid;
border-width:1px;
border-color:green;
}
#centerpannel
{
width:32%;
display:inline;
margin-left:auto;
margin-right:auto;
height:390px;
border: solid;
border-width:1px;
border-color:green;
}
#leftpannel
{
width:32%;
float:left;
height:390px;
border: solid;
border-width:1px;
border-color:green;
}
#info
{
width:92%;
height:400px;
border: solid;
border-width:1px;
border-color:red;
margin:0 auto;
padding-left: 5px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 0px;
}
and this is my html
<div id="info">
<div id="rightpannel"></div>
<div id="centerpannel"></div>
<div id="leftpannel"></div>
</div>
I really do not know why this is happening and I appreciate any help thanks in advance