Fixed container. - Forum

Forum Navigation
You need to log in to create posts and topics.

Fixed container.

Hi everyone, I have recently been using Visualneo web, I would like to know how I can prevent an object from scrolling while scrolling the page, I have tried CSS rules but it does not work

@llazzari please take a look at the attached app. It's a bit tricky but it can be done.
Let me know if you have any doubts.
Regards.

Uploaded files:
  • You need to login to have access to uploads.

Hello, I tried with the example he recommended, unfortunately it didn't work, however I solved the problem in this way.

# HEADERMENU3 {position: fixed;
left: 0px;
top: 0px;

}
the conteiner remains fixed when I run the app, but a strange thing happens, in the design phase, on the page the conteiner disappears,
appears moved to the right side of the page, but cannot be selected.

thanks for your xml listing that i read that maybe i didn't use in the right way, from which i extracted the css code to apply to the conteiner.

@llazzari please right click the uploaded sample file and select the save option so you can open my example using VisualNEO Web. Do not try to study the XML directly!

Regards.

@llazzari

I solved the problem in this way.
# HEADERMENU3 {position: fixed;
left: 0px;
top: 0px;
}
the conteiner remains fixed when I run the app, but a strange thing happens, in the design phase, on the page the conteiner disappears,
appears moved to the right side of the page, but cannot be selected.

You might try setting the CSS properties at run time (start-up section ?) ...

- via the SetObjectStyle command
or
- define your css properties for a css class (e.g. .fixedHeaderMenu) and then use the AddClass command

... you can lookup these commands in the online Help file here ... https://webhelp.visualneo.com/Objects.html