Hi Claire…thanks for giving me lots of information. Now for the bad news, sort of…
On the last link you posted, that theme version is version 1.2.9 while the newer one is 2.2.2.
My guess is that due to the version difference between the two longevity theme installs, you are seeing changes that were done with the latest version. For your peace.cosmiclight.ca site, you may want to consider updating Longevity for that one (Make a BACKUP first though). However, if you don’t want to update, you can create a custom CSS class and apply it to the table. Something like:
.yourtyle td {
padding: 20px;
}
Your table code would look something like this:
<table class="yourstyle" style="background-color: #26619c;" border="1" cellspacing="20" cellpadding="20">
Although the preference would be this:
<table class="yourstyle">
…and your custom CSS would be this:
.yourstyle {
border-width: 1px;
background-color: #26619c;
}
.yourtyle td {
padding: 20px;
}
When using classes, you can remove the border, cellpadding, and cellspacing because this this is the old way of tables; but that is a whole other topic.
This is a good starting point for adding more knowledge of styling tables: Table Style
Thanks again for such a prompt reply.
Well that’s rather mysterious.
I only uploaded your Longevity theme a few weeks ago and even now my dashboard says that my theme is up to date.
I certainly would like to have the latest update…would you be so kind as to tell me how to update a theme that says it’s up to date?
…the ww.wp.xz.cn website only offers the version 1.2.9 of longevity and so does the link to download from your website….? hummm….
I seem to be missing something here π
I’ve applied your first CSS custom suggestion and table code, and the results are good. I tried your second suggestion and there was no change. So the look is good but still wondering about the new latest Longevity version update.
My fault…I wasn’t paying attention and on your other site, the theme you are using is not Longevity, but I looked at the version 2.2.2. Longevity is indeed 1.2.9.
That is a sign of lack of sleep π
Anyway, apologies for that. But as for your issue at hand, the CSS suggestion I gave sounds like that worked then?
CSS worked beautifully, so issue solved. Thank you.
Since the issue was not because of an older theme version, does that mean that tables don’t respond to the text editor normally with the Longevity theme? and I will need to use CSS for adjustments?
If the theme has a special editor stylesheet, that will be true. Many themes will have an editor-style.css file which imports the theme styles into the editor so that your content in the editor will inherit the theme styles. Longevity does not include table styling in the editor stylesheet it includes, but depending on what you set as an embedded style, most styling that you do will show in the editor.
**Embedded style is the styling you apply to an element like your table style="background-color: #26619c;" is one example.
When you create a post or page that has a table or other elements, before publishing, you can click on Preview to see what it will look like when its published.
Thank you so very much for all your assistance.
Hope you can get some sleep π
You’re very welcome.
As for sleep, lol, I can only hope π