Html – How to Position a table HTML


I am trying to have the table lower and more to the right to were it originally is. How can i do this? What are the attributes? Thanks!

Best Solution

You would want to use CSS to achieve that.

say you have a table with the attribute id="my_table"

You would want to write the following in your css file

    margin-top:10px //moves your table 10pixels down
    margin-left:10px //moves your table 10pixels right

if you do not have a CSS file then you may just add margin-top:10px, margin-left:10px to the style attribute in your table element like so

<table style="margin-top:10px; margin-left:10px;">

There are a lot of resources on the net describing CSS and HTML in detail