.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

how to place table at Center

Posted By: Vikramraj     Posted Date: June 19, 2010    Points:2   Category :ASP.Net
I have html table on asp.net webpage. I want that html table at center of the page. Width of the page is 990px. Whtatever the resolution of screen. How I will solve this problem.

Responses
Author: Syed Shakeer Hussain             
Posted Date: June 19, 2010     Points: 5   

Hi vikramRaj,

<html>
<head>
</head>
<body>
<table>
<tr>
<td align="center">
<!- your inner table HERE ->
</td>
</tr>
</table>

</body>
</html>


Author: Kirtan             
Posted Date: June 21, 2010     Points: 5   

place the code in <center> tag

or you can align it through css too

like making

margin-right : auto;
margin-left:auto;

will make it in center;



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