Hello again,
Is it possible to center a panel based on the screen size?
Thanks in advance,
Michael
Hello again,
Is it possible to center a panel based on the screen size?
Thanks in advance,
Michael
There are multiple ways to do that:
or
left
/top
properties to auto
and add the following css
to its parent:> .panel {
display: flex;
align-items: center;
justify-content: center;
}
or
left
/top
properties to auto
, define its width
/height
and add the following css:top:calc(50% - 50rem); /* 50rem = width/2 */
left:calc(50% - 50rem);
Reference: https://openstagecontrol.ammd.net/docs/css-tips/#responsive-sizing
thanks! the second one did the trick.