Solved

html keeping table at bottom center

Posted on 2014-03-17
4
169 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dynamic created check uncheck boxes 6 42
Validating Date 4 29
Html split(text) 2 31
aria difference 2 15
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

733 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