Loading...
 
Features / Usability

Features / Usability


Custom Module Position

posts: 53 Australia

I've created a custom module with HTML code.

Is there a way to adjust the positioning, so it doesn't move off screen when scrolling? Like autotoc; It stays on the screen even when you scroll to the bottom of the page.

Thanks

posts: 4656 Japan

You can use CSS to do that, by adding something like

style= position: fixed; right: 100px; top: 150px;

in the "Parameters" textarea when assigning the custom module. In my test, I found that the module title and so on didn't get this fixed-position treatment, only the module contents did. So you might want to try using "nobox=y" also, if part of your module (the title and maybe borders, etc.) aren't staying in the fixed position.

-- Gary

posts: 53 Australia

Thanks. I tried copying your line above, but that hasn't worked for me.
Has the sanitizer stripped some of the line out?