CSS set width to fill % of remaining area

前端 未结 4 975
一向
一向 2020-12-12 13:28

Sorry for the slightly rubbish title. I could not think how to describe this one better.

I am trying to implement the Google Friend Connect members gadget on my sit

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 13:58

    You need to create an algorithm using jQuery or JS which checks for the remaining space and sets the width of the "remainder" element dynamically, per a responsive build. If the build is not responsive, you can test and set the element width by doing simple mathematical calculations.

    We have experienced similar issues whilst building a liquid-responsive-grid based media system.

提交回复
热议问题