Solved

html keeping table at bottom center

Posted on 2014-03-17
4
166 Views
Last Modified: 2014-03-22
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
Comment
Question by:thandel
  • 3
4 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39935950
Try this.
#bottomDiv { position: absolute; bottom: 0 ;margin-left: auto;margin-right: auto; }

Open in new window

0
 

Author Comment

by:thandel
ID: 39935958
No difference with your code.
0
 

Accepted Solution

by:
thandel earned 0 total points
ID: 39935972
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
 

Author Closing Comment

by:thandel
ID: 39947254
Self resolved.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
React or Angular? 6 52
Sums of coloumns in html/java 15 65
.php tree directory? 5 55
document.getElementById not worj with 2 IDs with the same name 10 17
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn how to count occurrences of each item in an array.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now