Trombones13
Well-known member
I've customized my notices such that the navContainer is separated from the scrollContainer, with each individual notice title measuring 100x100 (see image below). I want to be able to center the notices instead of having them float to the left, as is shown on the bottom half of the attached image. However, I can't put a specific width since it will screw up if the number of notices changes. I know the width that makes the lower image work can be calculated as follows:
Is there a way to calculate that with xen:calc? (Also, I presume xen:calc can be put in the custom CSS of a Style Property--in this case, @panelScrollerNavContainer--right?)
Hopefully that all makes sense--thanks!
Code:
100*(number of notices) + 10*(number of notices)
Hopefully that all makes sense--thanks!