Click here to Skip to main content
15,917,060 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
.GVFixedHeader
  {
    font-weight:bold; background-color: Green; position:relative;top:expression(this.parentNode.parentNode.parentNode.scrollTop-1);

  }

I have used this CSS to fixed header of a grid view.

It works fine in Internet Explorer 6.0 but it does not work in higher version.

How can I make it useful for every browser.

Please solve this problem.
Posted
Updated 14-Dec-11 23:24pm
v2
Comments
Code 89 15-Dec-11 6:37am    
mark as answer if it helps you..

Hi mousumi,

right click your project=>set default browser as IE=>
after run it=>and lastly set IE as Compitability view
you can see difference
 
Share this answer
 
thnaks Bojjaiah..
How can I set IE as Compatability view.
 
Share this answer
 
Comments
Bojjaiah 15-Dec-11 6:31am    
IE=>beside u type url see options or mouse over to display tool tip.
IE=>beside u type url see options or mouse over to display tool tip.
 
Share this answer
 
 
Share this answer
 
Comments
Mousumi2708 16-Dec-11 2:13am    
thanks..
Code 89 16-Dec-11 3:02am    
thanks to u too..
css in IE6 not showing same effect IE7+, you have to turn on compatibility view.
set compatibility view[^]
 
Share this answer
 
Comments
Mousumi2708 16-Dec-11 2:11am    
thanks kollprasad2003. It works..

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



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