Hello i want to make custom element that will be let’s say blue rectangle (in real it will be webgame) with proportion 16:9 and will automatically adjust to window size. I want it to be on the top of browser and centered vertically. I encoutered problem that manually i can set custom width and height in wix editor, but i don’t want it, and when i wanted to overwrite it by setAttribute for example it didn’t work. How to do it ?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to make custom element responsive | 1 | 21 | July 18, 2025 | |
Wix Block resize | 0 | 133 | April 7, 2024 | |
How to adjust size of an element programmatically | 1 | 508 | June 21, 2020 | |
CustomElement inside Wix is not stretching all the way to Parents Height | 0 | 23 | August 11, 2024 | |
Custom element not using editor's width | 1 | 174 | March 11, 2022 |