Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

maxWidth set to percentage or vw

edited October 2014 in Strip
i would like to set maxWidth to 50% or to some vw, is there any chance to use these parameters?


  • edited October 2014
    I'll think about adding that. Right now you can do maxWidth: $(window).width() * .5 but that won't take into account resizing of the viewport.

    edit: it'll also look bad on mobile, see my notes below.
  • edited October 2014
    I gave this some more thought and decided it's not worth implementing. While 50% viewport width on a desktop screen might seem nice it doesn't translate to a mobile screen.

    So I recommend avoiding the code I posted above since it'll look bad on a mobile screen. If you really have to use a maxWidth I recommend sticking with a number that works on a large desktop screen, that'll automatically work on smaller screens as well.
Sign In or Register to comment.