Using classes to set the width of a table cell but doesn’t seem to work. Tried both pixels and percentage but doesn’t make a difference. Had same issues with plain divs. Below is the code I am using with the code editor:
{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "html",
"html": "<table class='info'><tr class='title'><th class='w20'>sample title</th><th class='w60'> </th><th class='w20'>item 1</th></tr><tr class='description'><td>row 2 col 1</td><td></td><td>row 2 col 3</td></tr></table>",
"css": ".info { height: 100%; width: 100%;background-color: #000000; cellpadding: 5px;} .w20 {width: 20%;} .w60 {width: 60%;} .title {font-family: \"Manrope Light\"; font-size:22px; color: #ffffff;} .description {font-family: \"Manrope Light\"; font-size:17px;color: #ffffff; }",
"width": 1280,
"height": 200,
"position": "top"
},
"start": 0,
"length": 6,
"position": "top",
"offset": {
"x": -0.01,
"y": 0.01
},
"transition": {
"in": "fade"
}
}
]
}
],
"fonts": [
{
"src": "https://templates.shotstack.io/basic/asset/font/manrope-extrabold.ttf"
},
{
"src": "https://templates.shotstack.io/basic/asset/font/manrope-light.ttf"
}
]
},
"output": {
"format": "mp4",
"resolution": "hd"
}
}