Okay
  Public Ticket #2308427
how to CSS align center the player?
Closed

Comments

  • psyndrome started the conversation

    Hey there,


    I tried to center align the audio player via CSS:

    #sonaar-player {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 1100px !important;
    }

    ...but the player still stays on the left. How to fix this?

    Many thanks!

  • psyndrome replied

    GeneratePress guys had the solution:


    #sonaar-player { left: 50%; transform: translate3d(-50%, 94px, 0);
    }

    #sonaar-player.enable { max-width: 1100px; left: 50%; transform: translate3d(-50%, 0, 0);
    }

    (with !important that works fine!) :)