mayanktalwar1988
09-26-2009, 07:20 PM
div.mainbox
{
position:fixed;
background-color:#ffffff;
border-style:solid;
border-width:1px;
width:60%;
left:20%;
top:20%;
}
div.one
{
background-color:#baecab;
width:75.4%;
float:left;
}
div.headingone
{
width:75.4%;
float:left;
background-color:bababa;
}
div.headingtwo
{
float:right;
background-color:#bababa;
widhth:24%;
}
div.second
{
background-color:#baecab;
position:relative;
float:right;
right:10%;
}
</style>
<div class="mainbox">
<div class="headingone"> <h1>category</h1></div>
<div class="headingtwo"><h1>total tutorials</h1></div>
<div class="one"><a href=#>hfhfvhfvhefvjefvh ghghgfhghnb hdf kdofh dhfi ioye y uidqwdwdy d iod ddfh f hfif hf f ffhfkhfio sf e sifhf wwifhufh gufg guff fufh </a></div>
<div class="second">mgkgtuuuunyu</div>
</div>
in the above code i have problem that the second column is not uniform with first column.means the second cloumn height is not following the first column height and therfore color in the second column is not fillin exactly the height it filled in first column...how to acheieve this..infact running this code you automatically understand whrere this table like div is not uniform..how to make the second column follow the height of first column so that background color in second column fill exactly the same height it filled in first column
{
position:fixed;
background-color:#ffffff;
border-style:solid;
border-width:1px;
width:60%;
left:20%;
top:20%;
}
div.one
{
background-color:#baecab;
width:75.4%;
float:left;
}
div.headingone
{
width:75.4%;
float:left;
background-color:bababa;
}
div.headingtwo
{
float:right;
background-color:#bababa;
widhth:24%;
}
div.second
{
background-color:#baecab;
position:relative;
float:right;
right:10%;
}
</style>
<div class="mainbox">
<div class="headingone"> <h1>category</h1></div>
<div class="headingtwo"><h1>total tutorials</h1></div>
<div class="one"><a href=#>hfhfvhfvhefvjefvh ghghgfhghnb hdf kdofh dhfi ioye y uidqwdwdy d iod ddfh f hfif hf f ffhfkhfio sf e sifhf wwifhufh gufg guff fufh </a></div>
<div class="second">mgkgtuuuunyu</div>
</div>
in the above code i have problem that the second column is not uniform with first column.means the second cloumn height is not following the first column height and therfore color in the second column is not fillin exactly the height it filled in first column...how to acheieve this..infact running this code you automatically understand whrere this table like div is not uniform..how to make the second column follow the height of first column so that background color in second column fill exactly the same height it filled in first column