• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

html keeping table at bottom center

I have the following code working to put a table on the bottom of my web page:

<style>
#bottomDiv { position: absolute; bottom: 0 ; }
</style>


The only issue is that I need the table centered and while this code is putting the table at the bottom is to the left.  Is it possible to do this but center it on at the bottom of the page?
0
thandel
Asked:
thandel
  • 3
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
Try this.
#bottomDiv { position: absolute; bottom: 0 ;margin-left: auto;margin-right: auto; }

Open in new window

0
 
thandelAuthor Commented:
No difference with your code.
0
 
thandelAuthor Commented:
I removed the DIV and just added the following line prior to the table:

<p style=" position: absolute; bottom: 0; left: 0; width: 100%; text-align: center;">
0
 
thandelAuthor Commented:
Self resolved.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now