I’ve added my custom element to full width strip. But I’ve found Wix adds inline styles to my custom element:
So, I cannot set “width: 100%” to my custom element on the page, because inline styles have the highest priority in CSS.
I can easily stretch any built-in Wix element to full width (f.e. strip), but I haven’t found any information can I stretch my custom element and how.
Any ideas?
@jonatandor35 I’ve tried to see it on a premium website and with " this.parentElement.style.width = “100%”; " it takes 100% width. Thanks
I just ran into the exact same problem (and only found your question afterwards). I think the more reliable way. There is a CSS custom property --customElementWidth that you can use. You can style a div inside your element with width: var(--customElementWidth);
and it does the right thing and seems less likely to break suddenly that poking the style of the parent element.