I want to be able to lock the position of text boxes, macros, and/or sections so that the content will not move as the user scrolls down the page. A static header is the closest example I can think of, but it doesn't need to be at the top of the page. It could be on the side or the bottom. Is there a macro or plug-in to accomplish this? If there isn't an out of the box solution, what would you suggest? I am a novice coder.
Community moderators have prevented the ability to post new answers.
From a novice to another: This Stylesheet worked for me
Put the content, you want to lock in a DIV. "position: fixed;" leaves the DIV in the same spot even if you scroll. If you work with the macros "section" an "column", you can make sure, that you have always enough space, where you want your textboxes to be locked, if it is either on the left or right side of your page.
image2016-7-18 18:15:22.png
Hello Nils,
I am using Confluence 5.7.3
When I use the html div/span macro it gives me a drop down field for position and fixed is not an option. I can't enter any of my own values either. How do I get around the macro and use code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the div macro without a value for position. Just give it an unique ID like "yourid" or "tofix" or ...
With the macro CSS Stylesheet you can change and define every value of the div. you select it with #yourid and you define values in the {brackets} like for example position:fixed;
For more information about css, I'd suggest you visit this site: http://www.w3schools.com/css/.
That's where I look for CSS parameters and values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try @Davin Studer's trick:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.