While development you must have noticed that <div> tags are used more frequently in all programming languages. So, it is easier to align one <table><tr><td> at center of anothet <table><tr><td>.
But to align, one div at center of another div, we can use style's margin attribute like below.
<Div style="width:100%">
<Div style="width:50%;margin:0 auto">
Inner div at center of outer div
</Div>
</Div>
But to align, one div at center of another div, we can use style's margin attribute like below.
<Div style="width:100%">
<Div style="width:50%;margin:0 auto">
Inner div at center of outer div
</Div>
</Div>
No comments:
Post a Comment