Skip to content

Instantly share code, notes, and snippets.

@jeffreysfridge
jeffreysfridge / gist:5544ce6a9ba01d6a89c23a643b58ad8e
Created April 26, 2018 16:32
Break Container Full Page Width
.full-width {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw
}
/*--------------------------------------------*/
/* Replace H Tags
/*--------------------------------------------*/
function get_inner_html( $node ) {
$innerHTML= '';
$children = $node->childNodes;
foreach ($children as $child) {
$innerHTML .= $child->ownerDocument->saveXML( $child );
}