Break element out of container

前端 未结 7 619
暖寄归人
暖寄归人 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 10:03

    You can't actually make it break out of the wrapping div, but you can simulate this same effect by having the wrapping div be the full width of the page, and by wrapping the other elements on that page that are not supposed to be in your "break out" div inside a div that has a yellow background and 300px width.

提交回复
热议问题