Jump to content

Position entire table on site


Angeleyezz

Recommended Posts

Does anyone know how I can position an entire table somewhere on my page, what im trying to do is move a few tables at fixed positions for printing invoices from a sql / php document.  I got the margin top code working for the top of the page where the document is supposed to start under the letterhead, but now I have a dynamic table thats going to ajust and i need to fix the position of the table under it.  Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/257087-position-entire-table-on-site/
Share on other sites

nevermind i figured it out. assigned classes to it

 

table.invoice
{
margin-top: 15%;
padding: 0;
width: 100%;
background-color: #000000;
}

table.total
{
margin-top: 45%;
margin-left: 75%;
padding: 3;
width: 25%;
background-color: #000000;
text-align: left;
}

table.tearoff
{
margin-top: 60%;
padding: 0;
width: 100%;
background-color: #000000;
text-align: left;
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.