Tagged: enfold, table formatting
-
AuthorPosts
-
August 17, 2015 at 10:32 am #488737
Hi,
have a look at that table in this event-post: https://quer-kraft.org/events/quer-kraft-jahrestagung-2015/
Every second row is completely green formated. How can I changed the format in that way that is in every other line like it is in the first row?
Thanks,
Gee AreAugust 17, 2015 at 4:36 pm #488990Hey Gee Are!
Add this to a codeblock element in that page.
<style type = "text/css"> tr, td { background: white !important; } </style>
Cheers!
ElliottAugust 18, 2015 at 12:16 pm #489428Hi Elliott,
thanks, but how do I add that codeblock element in that page? Just copy & paste did not work.
Cheers,
Gee AreAugust 18, 2015 at 1:56 pm #489495or you can change the concerning rule:
.main_color tr:nth-child(2n) { background-color: #fff !important; }
if you only wants to change the table on that post you can give a class to that table or if it is the only table on that post:
.postid-3964 .main_color tr:nth-child(2n) { background-color: #fff; }
Edit: :lol – green seems to be your favorite color – even your avatar is a little bit “scottish”
- This reply was modified 9 years, 4 months ago by Guenni007.
August 19, 2015 at 8:57 am #489870Hey @Gee Are Pabst,
Just drag a Code Block element onto the page in question before the element you want to affect, then copy paste either of the code suggestions posted earlier into that block to see if that works. You can also use Quick CSS in the Theme options if you prefer that.
Regards,
RikardAugust 19, 2015 at 9:58 am #489899Hi Rikard,
I took this code:
<style type = “text/css”>
tr, td { background: white !important; }
</style>However, neither pasting it into the Quick CSS, nor pasting it in the post directly before the table worked.
Any other iedeas? Did I make any Kind of mistake?
Cheers,
Gee AreAugust 19, 2015 at 4:53 pm #490224Hi!
You would just drag the codeblock element to your page content and add that code inside. Send us a WordPress login and we’ll do the edit for you if your still having trouble.
Cheers!
ElliottAugust 20, 2015 at 9:32 am #490620Hi Elliott,
find attached my private message.
Cheers,
Gee AreAugust 21, 2015 at 11:40 am #491264Hey,
Could you create a new user in the WordPress backend please? I think it’s easier that way since I don’t want to use a personal email or Kriesi’s email for that. If you post details here in the Private Content section all moderators will have access to them and we will be able to help you out better.
Regards,
RikardAugust 21, 2015 at 10:35 pm #491625Here we are!
August 25, 2015 at 11:18 am #492798Hi!
we need admin access to be able to help you with that. However, try this code in Quick CSS field:
em { color: #666666; }
Best regards,
AndyAugust 26, 2015 at 8:48 pm #493806Hi Andy,
Quick CSS tip does not work.
Now, you got admin access. Please, check it. Thanks!
Cheers,
Gee AreAugust 28, 2015 at 11:17 am #494757Hey!
your table seems fine to me now. Could you fix it?
Cheers!
AndyAugust 28, 2015 at 8:48 pm #495097Hi Andy,
it wasn’t me. It was somebody of Kriesi. Yep, it is fixed on this post.
However, here it isn’t: https://quer-kraft.org/veranstaltungen/
How can I solved this table issue in general?
Cheers,
Gee AreAugust 29, 2015 at 9:53 am #495263Hey!
I checked the page and the background of the rows are white. Isn’t that what you wanted?
Regards,
IsmaelAugust 30, 2015 at 10:35 am #495438Hi Ismael,
nope. Have a look in the private content. Every second second row is green in a table. I just want to have all second lines in the same color format…
Cheers,
Gee AreSeptember 1, 2015 at 9:42 am #496330Hi!
Alright. Please add this in the Quick CSS field to adjust the font color of the alternate rows:
.main_color table caption, .main_color tr:nth-child(even), .main_color .pricing-table>li:nth-child(even) { color: #666666; }
Regards,
IsmaelSeptember 1, 2015 at 2:33 pm #496407Hi Ismael,
you’re the man! Problem solved! Ticket can be closed!
cheers,
Gee AreSeptember 2, 2015 at 6:33 am #496860 -
AuthorPosts
- The topic ‘format in tables is different every second row’ is closed to new replies.