Comments (17)
Hi,
thanks for your post, and sorry for the trouble.
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
from tablepress.
This is the code I tried:
.tablepress td,
.tablepress th {
text-align: center;
vertical-align: middle;
}
from tablepress.
Hi Tobias, I'm a novice at WordPress. I'll put the table on a sample page as I've been working on it only previewing on the actual page. I'll do that now.
from tablepress.
Here's a test page with the table in question, I will re-apply the custom CSS now.
http://www.scalepreventionusa.com/792-2/ β
Thanks in advance.
from tablepress.
I did the following as I don't want to text align center on all of my tables:
.tablepress td,
.tablepress th {
vertical-align: middle;
}
from tablepress.
I'd also like to make the table background #ffffff
from tablepress.
There are several issues here:
Please don't add extra table HTML into the cells (like that <td valign="middle"></td>
.
Also, text (in the third column) should not be wrapped in <h4>
tags. Those are for headings only.
To set the background color, just uncheck the "Alternating row colors" checkbox for the table.
To then vertically align the cell, please use this "Custom CSS":
.tablepress tbody td,
.tablepress thead th {
vertical-align: middle;
}
from tablepress.
Understood, thanks, it's great when you know how! The was me experimenting to see if I could get that done. I'm more familiar with html than anything else. Regarding the
tags I did that as I wanted to easily use that particular style, what should I use as an alternative?
from tablepress.
I don't know why that posted as bold?
from tablepress.
It posted as bold as you did not escape the <h4>
tags. You can of course keep using those, but it might be better to assign the desired font style to the cells, in the same way as you assign the alignment.
from tablepress.
OK great, thanks for your help Tobias
from tablepress.
How about cell padding?
from tablepress.
Padding can be set e.g. like this:
.tablepress tbody td,
.tablepress thead th {
padding: 20px;
}
from tablepress.
Thanks, and how do I limit this to one table so I don't mess up the other tables on the site?
from tablepress.
For that, you'd use the ID-based CSS selectors, see https://tablepress.org/faq/css-selectors/
from tablepress.
hi TobiasBg'
i also have this same issue.
I just changed the font size of table by adding this CSS:
.tablepress tbody td {
font-size: 15px;
}
But this code is working on Desktop, Not in Mobile.
from tablepress.
Hi @DXDWXIKI,
Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
from tablepress.
Related Issues (20)
- Question: posibility to get table information from a json REST api, instead of importing? HOT 4
- Can't save Auto Import Tables config HOT 1
- Function WP_Block_Type_Registry::register was called incorrectly HOT 2
- tablepress_rest_api:missing_capability:tablepress_edit_table HOT 7
- Help with translation HOT 3
- Freemius integration is doing heavy damage to wp_sitemeta meta_key fs_accounts HOT 5
- aria-role="link" in previous/next-buttons is redundant HOT 4
- check if file exists before attempting to unlink HOT 2
- Freemius Performance issue after upgrading to 2.1.5 HOT 3
- Error: Function is_search was called incorrectly... HOT 4
- Change Default Table Features for Site Visitors HOT 1
- No obvious way to disable/revert inline CSS loading HOT 1
- Fatal error: Compatibility issue with FS Edd Migration plugin HOT 8
- Resolve PHPStan issues HOT 12
- Oops! That page canβt be found. HOT 3
- Question: Accent neutralise HOT 1
- Tablepress text gets white when add links HOT 5
- TablePress CSS Loads even without a Table on page HOT 2
- Deprecation error from Freemius HOT 5
- TablePress and Elementor conflict after recent updates, preventing Elementor editor to load HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tablepress.