You must Sign In to post a response.
Category: HTML
#757278
Hi
we can use center tag and div css we can achieve center page table
method 1
method2
Name : Dotnet Developer-2015
Email Id : kumaraspcode2009@gmail.com
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.
we can use center tag and div css we can achieve center page table
method 1
<div style="margin-left:720px;">
<table border="2" style="color:red;">
<tr>
<td>
Dotnet Spider
</td>
</tr>
</table>
</div>
method2
<center>
<table border="2" style="color:red;">
<tr>
<td>
Dotnet Spider
</td>
</tr>
</table>
</center>
Name : Dotnet Developer-2015
Email Id : kumaraspcode2009@gmail.com
'Not by might nor by power, but by my Spirit,' says the LORD Almighty.
#757279
Simply put one main div with 100% width and 100% height and put your table within that div.
After that set div horizontal and vertical align to canter, so you table will be display in centre.
Regards & thanks
Arvind kumar
Visit--blog.akumars.esoftera.in
After that set div horizontal and vertical align to canter, so you table will be display in centre.
Regards & thanks
Arvind kumar
Visit--blog.akumars.esoftera.in
#757287
Hi,
If u want the table in center then use the sample codelike
:
<table width="100%" allign="certer">
<tr>
<td></td>
</tr>
</table>
then table will disply in center..
thanks,
Chitaranjan
If u want the table in center then use the sample codelike
:
<table width="100%" allign="certer">
<tr>
<td></td>
</tr>
</table>
then table will disply in center..
thanks,
Chitaranjan
#757309
The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.
My Suggestion is to refer w3schools :-
http://www.w3schools.com/html/html_tables.asp
Thanks & Regards
Abhinav
My Suggestion is to refer w3schools :-
http://www.w3schools.com/html/html_tables.asp
Thanks & Regards
Abhinav
#763008
you need to do it step by step and for perfection, you need to set exact measurements of the table so that it blends with your available data. For this you can refer to the site below :-http://www.granneman.com/webdev/coding/css/centertables/
it has various methods of doing it. Hope this helps.
it has various methods of doing it. Hope this helps.
Return to Return to Discussion Forum