Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using two
in my page.

The first div is not working.

But, second
is working.

Both
class are same.

How second ,div. is working and first
is not working..?

Is there anyother way to do this...?

see my code
------------
ASPX Code
----------
HTML
<div id="div1" class="DivHistoFrozen" > 
   <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
   </table>
</div>
<div id="div2" class="DivHistoFrozen" >   
      <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
      </table>
</div>


CSS Code
--------
CSS
.DivHistoFrozen
{
	overflow:scroll ;
	width:100%;
	height:auto;  
}
Posted
Updated 29-Dec-11 19:40pm
v2

1 solution

There is not any effect due to using same class. pls use below html

XML
<div id="div1" class="DivHistoFrozen" >
   <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
<tr><td> </td></tr>
   </table>
</div>
<div id="div2" class="DivHistoFrozen" >
      <table class="Labels"  border="1" style="width: 95%;" cellpadding="0" cellspacing="1">
<tr><td> </td></tr>
      </table>
</div>
 
Share this answer
 
Comments
gani7787 30-Dec-11 2:41am    
the same is working in the local system. but, not working properly in server..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900