Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am not able to make my website page in center as i already used center tag..
can anyone provide the solution ??

What I have tried:

i put this on my table..
<table width="798" border="0" align="center" cellpadding="0" cellspacing="0" removed="imagenew/full_up_line.jpg"></table>
Posted
Updated 8-Jun-16 7:44am
v2
Comments

1 solution

Wrap your table inside a div element and apply CSS like:

CSS
#Div1{
    width:600px;
    margin-left:auto;
    margin-right:auto;
}


Or you just set align="center" to your Div.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Jun-16 9:57am    
My 5 for knowing the technique. However, I'm afraid it's going to serve the purpose of creating yet another Web site with a central fixed-size column in the middle and unused space of left and right of it. If so... how much longer? Those sites are abominate... :-)
—SA

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