i’m struggling with the css formatting inside a Ticker region (again) not behaving as expected.
I created a region with a ticker that uses a dataset and the CURDATE() filter method to display a schedule in a table. The html of the table looks as follows:
Looks to me like it’s the length of the single word in your text in the Raum column that’s too wide for the space you’ve allowed it and so it’s squashing all the others over.
You might try either shrinking the text size or making that column wider.
unfortunately, i’m not able to find the right css-based solution (changing the text is no option for now, sadly…)
What i tried:
tried to add width: 200px; text-overflow: clip; overflow: hidden to the td in the html (as inline css) but it just doesn’t clip
tried to add these css rules to the “additional style sheet” but to no effect
What i want:
i want the single words to clip when they are too long, but eventually break to a new line when the cell content becomes too much… is that even possible?
Thanks Peter, the property itself is exactly what i was looking for - but i’m style struggling to apply it the right way. I have tried adding it both inline and in the addition style sheet field, but it doesn’t work…
I can’t use “table-layout: fixed” cause it will mess up my layout unfortunately - i fixed the width using width:100px…
You need to use a DataSet module if you want tabular data, because Ticker will apply your template for each item returned - i.e. you don’t have 1 table you have a table per line.
Thanks for your reply dan - i will try the DataSet module and see if i can get the formatting right. I know the Ticker module “repeats” the table lines, but i felt like it was the right tool for this job… the word break is the only error left…
The trick within the ticker module is to set the “word-wrap” as inline css inside the html of the ticker region, it works as expected then…
Thanks for your help guys! I will report back if it worked or not…