If you need to center one element inside another block element (for example TABLE inside a DIV element) you can use align="center". For example:<div>
<TABLE width="50" align="center">
...
</TABLE>
</div>
But if you need to use CSS you can do this:table {
margin-left: auto;
margin-right: auto;
# or just margin: 0 auto 0 auto;
}
A bit about
Hello, everyone! All you can see below is just my bank of information. Some material I've found in the fathomless net, some I've learned myself. Don't think all of the information here is right or actual, but may be it could be of use for you :) All feedback is welcome, especially constructive ones :)
Thursday, April 9, 2009
HTML: align="center" through CSS
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment