[SOLVED] How to center the slider
Permalink Browser Info EnvironmentI tried to center the slider overlay on my page, through the properties but the slider disapeared each time.
How can I do that?
Thanks.
Type: | Discussion |
---|---|
Status: | New |
Thanks for this solution.
thanks
RS
1) Place the Slider Overlay inside a table cell and vertically align that; or
2) Apply a CSS hack to obtain vertical alignment (but you have to hard-code the height of the element/s into your stylesheet, so it's not very flexible. It's quite messy and easily breaks in an environment like C5 where the content can change so quickly.
Hope this helps.
JB
Thanks
RS
It is a bit strange that the whole slider simply disappears. I've been able to replicate this as well. The only way to center align a DIV tag is using the CSS tag "margin". But implementing this would be fiddly and prone to conflicts with site themes.
So the easiest workaround is to use the "layout" feature in the core of C5. Simply create 3 columns and 1 row. Place the Slider Overlay into the middle column and adjust the width on the left and right accordingly. Not an elegant solution, but it will work.
Hope this helps.
JB