Back to the Shapespark home page

Centre Align Popup

Hi All,

Just wondering how I would go about, if possible, aligning the HTML Label popup box to the centre of the screen as opposed to the top left?

Any help much appreciated - thanks!

2 Likes

We need such extended styles for the popup also :slight_smile:

It would be something along the lines:

<style>
  #ext-html-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%); 
  }
</style>

added to the head-end.html file in the scene directory.

2 Likes

Awesome, thanks, that works well!