Breaking Out of Parent Element with CSS
Introduction
Often times when developing CSS for a WordPress child theme or just when working with someone elses stylesheets in general, it can be desirable to “breakout” of the parent element and draw a full width element that stretches the entire width of the page.
This can be achieved with the following code:
HTML
1 | <div class='parent'> |
CSS
1 | .parent{ |
If you’re dealing with some particularly stubborn CSS you might need to do something like this:
1 | .break-out { |