Align two inline-blocks left and right on same line

后端 未结 9 772
滥情空心
滥情空心 2020-11-27 11:50

How can I align two inline-blocks so that one is left and the other is right on the same line? Why is this so hard? Is there something like LaTeX\'s \\hfill that can consume

9条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 12:26

    If you're already using JavaScript to center stuff when the screen is too small (as per your comment for your header), why not just undo floats/margins with JavaScript while you're at it and use floats and margins normally.

    You could even use CSS media queries to reduce the amount JavaScript you're using.

提交回复
热议问题