Break element out of container

前端 未结 7 642
暖寄归人
暖寄归人 2021-02-02 09:00

I have all my content wrapped in a container element with a fixed width.

But I have a

that I want to \"break out\" of that container to span the
7条回答
  •  爱一瞬间的悲伤
    2021-02-02 09:58

    I like this simple technique (thanks to Bust elements out of their containers with one line of CSS):

    margin: 0 calc(50% - 50vw)
    

提交回复
热议问题