Table center not working
-
Hi
I am currently building a website for myself and I am using “Themify Ultra” theme.
I have installed your plugin “Tablepress” as I want to have tables in my pages and I have found it to be a great piece of software and relatively easy to style using CSS and your instructions for the things that I have done so far are great ??However!
When I come to try centre the table on my page it is constantly being pulled to the left….?
.tablepress-id-N {
width: auto;
margin: 0 auto 1em;
}This doesn’t work.
When my page loads it jumps to the centre but then it seems to be pulled to the left and will never centre.I have checked everywhere in the theme but can’t seem to find anything that would conflict with it.
I would also like to have the table at a specific size too like
.tablepress-id-N {
width: 800px;
margin: 0 auto 1em;
}But this will not work either.
Please I have been tearing my hair out for two days with this now.I can’t even find where I could maybe add some padding to the page. I am a novice so it is probably me that has missed something.
So please…
Can you help?Here is the total CSS from the Plugin Options Custom CSS that I have added.
…………………………………………………..
.tablepress-table-name {
color: #800517;
text-align: center;
}.tablepress-id-thoth_wands thead th,
.tablepress-id-thoth_wands tfoot th {
background-color: #800517;
font-family: Shanti;
font-size: 25px;
font-style: normal;
font-variant: normal;
font-weight: 600;
line-height: 22px;
color: #FDEEF4;
}.tablepress,
td,
th {
border: 1px solid black;
border-collapse: collapse;
}.tablepress {
width: 800px;
margin: 0 auto 1em;
}.tablepress-id-thoth_wands .odd td {
background-color: #990012;
font-family: Shanti;
font-size: 22px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 22px;
color: #FDEEF4;
}.tablepress-id-thoth_wands .even td {
background-color: #F70D1A;
font-family: Shanti;
font-size: 22px;
font-style: normal;
font-variant: normal;
font-weight: 400;
line-height: 22px;
color: #FDEEF4;
}.tablepress-id-thoth_wands .row-hover tr:hover td {
background-color: #C24641;
}……………………………………………………
Thanx in advance
Aeon
- The topic ‘Table center not working’ is closed to new replies.