I am trying to create a website similar to this one. When I click on the arrow, the left div collapses and the right one expands. However, the content of the right div does not expand as expected!
Below is my HTML code:
<div class="tools-bg">
<div class="tools">
</div>
</div>
<div class="arrow"></div>
<div class="picture-holder">
<div class="allpartsofthepic">
<div id="row1" class="tr">
<div id="prt1" class="td"></div>
<div id="prt2" class="td"></div>
<div id="prt3" class="td"></div>
<div id="prt4" class="td"></div>
<div id="prt5" class="td"></div>
<div id="prt6" class="td"></div>
<div id="prt7" class="td"></div>
<div id="prt8" class="td"></div>
<div id="prt9" class="td"></div>
<div id="prt10" class="td"></div>
</div>
</div>
</div>
And this is my CSS code:
.tools-bg
{
background: none repeat scroll 0 0 #ededed;
float: left;
height: 450px;
width: 350px;
}
.tools
{
margin: 40px;
}
.arrow
{
background-color: #ccc;
color: #666;
font-size: 2em;
height: 450px;
float:left;
padding-top: 167px;
text-align: center;
width: 50px;
cursor:pointer;
}
.tr
{
display:block;
}
.td
{
width:278px;
height:265px;
float:left;
}
.picture-holder
{
float: left;
overflow: hidden;
height:450px;
width:70%;
}
#prt1{ background-image:url("../image/01_01_01.png");}
#prt2{ background-image:url("../image/01_01_02.png");}
#prt3{ background-image:url("../image/01_01_03.png");}
#prt4{ background-image:url("../image/01_02_01.png");}
#prt5{ background-image:url("../image/01_02_02.png");}
#prt6{ background-image:url("../image/01_02_03.png");}
#prt7{ background-image:url("../image/01_03_01.png");}
#prt8{ background-image:url("../image/01_03_02.png");}
#prt9{ background-image:url("../image/01_03_03.png");}
#prt10{ background-image:url("../image/01_04_01.png");}
I believe the issue lies within my CSS, but I am struggling to resolve it. Any assistance would be greatly appreciated.