• Resolved addblog

    (@addblog)


    The audio player by default takes up the entire width of the page. If I add a class (e.g. nwpy-player) to it then I can make it less wide with

    .nwpy-player {width:500px;}

    in customizer’s additional css code.

    Should I be hard coding the width or is there a better way?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • What you’ve done works fine… except on smaller screens.

    Instead of

    width: 500px;

    I would change to

    max-width: 500px;

    so once it gets < 500px the player just goes to 100% of container element

Viewing 1 replies (of 1 total)
  • The topic ‘resize audio player width’ is closed to new replies.