in my app, i want to put a div in the foreground - so i wrote for this element in the style:
but it doesn't works. I want to show it in front of a list but it is under the list. What is wrong??
Setting margins won't will just add spacing around your div. It won't change where it is positioned.
It sounds like you want to do something like this:
Depending on where the div is in the document you may also need to adjust the zIndex to make sure it is "on top" of the list.