Page 1 of 1

Possible to change Postion from absolute to Fixed?

Posted: Wed Aug 02, 2017 12:07 pm
by mrojek
Profound UI,

I have come across an issue where I need to change an element's position from Absolute to Fixed. It seems all elements in Profound are defaulted to position: Absolute and I obviously cannot change this with CSS because of precedence reasons. I did not see any properties to change this on the designer screen, is there anything you would recommend for this? I would prefer to stay away from changing the element's position with JavaScript because I would like to add the element to the Custom Widgets list in the designer, and have it default to fixed once the user selects it from the Custom Widgets list.

Thanks,
Mike

Re: Possible to change Postion from absolute to Fixed?

Posted: Sat Aug 05, 2017 12:09 am
by shuffman
you may want to check into the !important rule in CSS. This rule is somewhat frowned upon but it gets the job done under certain circumstances. It will override anything in the style attribute of an element and any other CSS selectors. I tried it out and it confuses the editor since the canvas isn't inside it's own window but it does position correctly outside of the designer. You could add the CSS class to the element after you have positioned it where you want it. I don't think there would be an easy way to make this appear correctly in the designer without using javascript.