[Plugin: WP-Table Reloaded] Change Background Color of Outer Table
-
Hi Tobias –
Can you please check out the following URL http://dannymuzzalupo.muzzmarketing.com/statistics/
I would like to change the background color of the outer table from a light gray to match the color behind the menu bar. I’m not sure which code to use.
I appreciate all of your help and will donate after receiving your response!
Thanks much.
Sheryl
-
Also — I was able to center the table on the page by using <center>, however, whenever I make a change to the page, I lose that code. I tried the code you provided in the FAQ but was unable to get the table to center. Thanks for your help!
OK — I did figure out that the background of the outer table was actually the header row so I followed your instructions on how to change the header color and it worked. Couple of other minor things. I am trying to remove the border from the outer table (so it has the same “floating” effect as the menu bar). Also trying to center the text in column 5 of table 4. Can’t get either to work. I’m following the instructions but still not having any success. Thanks for your help!
Hi,
as it seems, you were able to get everything to work as intended, correct?
If not, can you explain again, what is not working?
If everything is ok, I’d ask you to mark the topic as “resolved.”Thanks a lot!
Tobiashai there,
Its my first one I used wordpress at my work and i am having an issue related to background color of table which i inserted in the content part
The background color of table is visible at background but it is not visible outside when publishAny kind of help will be highly appreicated
Thank you,
Hi,
can you please provide a link to the page with your table?
Regards,
TobiasWell, this is the link
http://comprompt.info/abc/market-watch/
its demo site where we first experiment the table of content is also dummy, but it is exactly a copy of original one with the same themeHi,
thanks for the link.
Now, can you explain again, what you want to achieve, or what you feel is not working?
And, you are not using the WP-Table Reloaded plugin for your table, right? (I’m asking because you have asked in a forums thread that belongs to the WP-Table Reloaded support area.)
Regards,
Tobiasactually I am using a plugin called fck editor because of which I am able to draw a table without getting into codes. It looks great at backend but when it comes to publish it is colorless I tried it with other theme it works (http://comprompt.info/demo/?page_id=205) but not with this one, I wanted to know what should I add in stylesheet to get the colourful table and yes I have not install WP-Table Reloaded plugin here nor over any place but if install it will it work for me I doubt please suggest me
Hi,
ok, thanks for the clarification.
Yes, your new theme contains CSS code to make the table transparent/white.
The code for the coloring is however done by HTML (which is not a good way actually), and the CSS thus overwrites this.
To change that, you need CSS like this:table th { background-color: #F90!important; } table td { background-color: #FFC!important; }You are right that WP-Table Reloaded won’t help directly here, but it also is a tool for table management without needing code, so you might want to try it.
Regards,
Tobias-
One thing I must say that the plugin prepared by you is a very good, I haven’t go in detail of it but as much I see it’s good but the problem is I had a table with vast data (around 9 columns and 26 rows) and it goes outside (http://comprompt.info/abc/subscription/) so will it be good idea or going to css will be an better idea, another thing is I don’t get the above code correctly I implemented the above code but now all the columns are in one particular color (http://comprompt.info/abc/market-watch/)while i want a multi-colour one so any suggestions please let me know! further if you want it I can send you the stylesheet of the theme for more clarity
If you want stylesheet just let me know where shall I drop it!
Thanks for your quick replies I really appreciate you for thisHi,
thanks for testing this.
For the extending into the sidebar of the WP-Table Reloaded table: That is coming from your theme’s CSS as well, and additionally from the number of columns and its content. The browser has to put them somewhere, so the table gets extended.
This can be reduced to some extent by adding some CSS though, which reduces the padding.For the code and your existing table: Sorry, I didn’t see that you had chosen different colors. Now, unfortunately, having the first column in a different color than the rest is not possible with CSS and the current HTML markup – there are simply no CSS classes that can be used. This is because (as mentioned above) the table is colored in HTML instead of CSS.
So, if you really want this, you will need to change the default CSS of the theme in the stylesheet.
(By the way: No need to send it to me, I can see it in the source code of your web page.)
To do that, please remove the code I gave you again.
Then go to line 13 of your theme’s style.css.
Remove table, caption, tbody, tfoot, thead, tr, th, and td from the list.
Additionally, add the following CSS code below line 13:table, caption, tbody, tfoot, thead, tr, th, td { border: 0; margin: 0; padding: 0; vertical-align: baseline; }After that, you should see the colors that you chose in your editor.
Regards,
TobiasThanks a lot, Tobias it really work for me but just a small query you said that the table size can be reduced to fit in, so Can I know which css needs to be edited or added to do so! because at many occasion in this theme the content or image if over sized it comes out of the content part which doesn’t look good.
Again Thank you very much Tobias….
Hi,
that CSS would be (for WP-Table Reloaded tables):
.wp-table-reloaded th, .wp-table-reloaded td { padding: 4px!important; }Just add it to the “Custom CSS” textarea on the “Plugin Options” screen of WP-Table Reloaded.
Regards,
TobiasHi,
Thanks for your immediate reply and sorry for delay, first thing i didn’t get where this “Custom CSS” is, ya visited the plugin editor via dashboard but there are lots of file under WP – Table Reloaded plugin hence I got confused which one to edit another thing is now our clients requirement has increased he wants a bit complicated type of table you can have a look at it (http://www.niftystockoptions.com/past-performance-Apr2011.html) which seems to be difficult for me, then also if you have any suggestion please let me know…….Again thanks for your immediate reply’s
Hi,
the “Custom CSS” field can be found on the “Plugin Options” screen which you can reach from inside the WP-Table Reloaded area in the Dashboard. It must not be confused with the plugin editor.
Just go to “Tools->WP-Table Reloaded” and in the small navigation bar in the top/middle of the window, click “Plugin Options”. There, you can find the “Custom CSS” textarea.For your larger tables from the links: Such tables can be created and managed with WP-Table Reloaded as well. It’s just a matter of styling them (in case the default styling shall be changed). You will however need to find a custom solution for that navigation effect in that link, which shows a different table when a “tab” is clicked. You might however be able to extract the necessary JavaScript code from there.
Regards,
Tobias
The topic ‘[Plugin: WP-Table Reloaded] Change Background Color of Outer Table’ is closed to new replies.