.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Set scroll bar to table instead of browser.

Posted By: Sajid P K     Posted Date: November 12, 2010    Points:2   Category :ASP.Net
Frnds,

I have a table in the aspx page.

If width of the table is greater than screen size... I have to set scroll bar on this table instead of browser.


Regards,
Sajid P K


Responses
Author: Sadhuryan             
Posted Date: November 12, 2010     Points: 5   

try to apply css for your table, as below

table
{
overflow: auto;
}


or

table
{
overflow-y: hidden;
overflow-x: auto;
}


Author: Manoranjan Sahoo             
Posted Date: November 14, 2010     Points: 5   

first put table inside one div tag and then make overflow of the div as auto or scroll as per browser.

check below link for cross browser compatibility :
http://www.thesitewizard.com/css/excludecss.shtml

Join My Site : http://dotnetsquare.com/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend