Welcome to Taipy › Forums › Taipy GUI › Column cell styling in tables › Reply To: Column cell styling in tables
Hi Florian,
It’s OK now!
Actually, when I first tested column styling, I used “td” in CSS. Indeed, it prevents column styling for some reason.
But in my further experiments I added row styling in the same script, so it looked like:
import pandas as pd
from taipy import Gui
data = pd.DataFrame({“Name”:[“John”,”Mary”,”Bob”],
“Age”:[32,23,40]})
page = “””
<|{data}|table|style[Name]={lambda state, value: “red-cell”}|>
<|{data}|table|style={lambda state, idx: “red-cell”}|>
“””
Gui(page).run()
Then there are problems with column styling, with or without “td”, but now because of some conflict in style applying between tables, I believe.
So it was all my negligence, no faults with your great framework.
Thank you for your help, really appreciated.
Andrey