Possible to change Postion from absolute to Fixed?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mrojek
New User
Posts: 12
Joined: Fri Nov 30, 2012 3:48 pm
First Name: Mike
Last Name: Rojek
Company Name: McGard
State / Province: New York
Zip / Postal Code: 14127
Country: United States
Contact:

Possible to change Postion from absolute to Fixed?

Post 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
shuffman
Profound User
Posts: 22
Joined: Fri Jan 29, 2016 11:15 am
First Name: sam
Last Name: huffman
Company Name: gmdsolutions
Phone: 7122624520
Address 1: 2311 W 18th ST
City: Spencer
State / Province: Iowa
Zip / Postal Code: 51301
Country: United States
Contact:

Re: Possible to change Postion from absolute to Fixed?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests