Allow the CSS of the card to use a percentage as width parameter and so, be able to "add a way" to do use_column_width=True (https://github.com/gamcoh/st-card/issues/19) like here:
from streamlit_card import card
res = card(
title="Streamlit Card",
text="This is a test card",
image="https://placekitten.com/500/500",
styles={
"card": {
"width": "100%", # <- make the card use the width of its container, note that it will not resize the height of the card automatically
"height": "300px" # <- if you want to set the card height to 300px
...
}
}
)
Also change the animation and split the CSS of the text and the title.
Allow the CSS of the card to use a percentage as width parameter and so, be able to "add a way" to do
use_column_width=True
(https://github.com/gamcoh/st-card/issues/19) like here:Also change the animation and split the CSS of the text and the title.