![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
-
AuthorPosts
-
March 1, 2021 at 9:14 pm #1284571
Hi,
I need to change the css of the standard table (alternating grey and white background and black and grey fontcolor) to only white background and black fontcolor. Where do I find this CSS and how could I create different styles for the tables (if this is possible)?
Thank you for your help.Hallo,
Ich würde gerne das Standard Tabellenlayout (abwechselnd weisser und grauer Hintergrund, schwarze und graue Schrift) in einen einheitlichen weissen Hintergrund und schwarze Schrift wechseln. Die leicht grauen Linien können bleiben. Wo finde ich das CSS für diese Tabelle, die automatisch auf eingefügte Tabellen angewandt wird?
2. Frage, wenn es eine einfache Lösung gibt: Kann man auch mehrere Tabellenstile hinterlegen und dann zuordnen?
Vielen Dank für eure Hilfe.
lg alexMarch 3, 2021 at 6:22 am #1284952Hey edendesign7,
Please try the following in Quick CSS under Enfold->General Styling:
.main_color table { background: transparent; } .main_color tr:nth-child(even) { color: #000; }
Best regards,
Rikard-
This reply was modified 3 years, 6 months ago by
Rikard.
March 3, 2021 at 1:23 pm #1285013Hi Rikard,
Thank you for your helpful answer! It works halfway. ;-)
The font is black now, the background is still alternating. Actually I like this, but for my learning, it would be very interesting, how I edit the table row in an uniform color.
If you have a second hint, I would apreciate.
greetings, alexMarch 3, 2021 at 2:59 pm #1285040Hey Alex,
Thanks for contacting us!
Please add following code to Quick CSS field in Enfold theme options > General Styling tab
.main_color tr:nth-child(2n+1), .main_color .pricing-table > li:nth-child(2n+1), .main_color .pricing-extra { background: white; }
Best regards,
YigitMarch 3, 2021 at 4:07 pm #1285055Wow! That works now. Thank you!!
March 3, 2021 at 4:09 pm #1285058Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
This reply was modified 3 years, 6 months ago by
-
AuthorPosts
- The topic ‘Change style of table’ is closed to new replies.