Shpigford Shpigford - 1 year ago 120
HTML Question

Break element out of container

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 full width of the page.

enter image description here

As you can see in that example, I've got the
to break out, but since it's positioned absolutely, it doesn't affect the flow of the page...which is what I'd like it to do.

I want it to act like it's in the flow of the page, but expand the full width of the window.

Answer Source


.break { 
    background:rgba(255,0,0, 0.5);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download