Don't include elements with 'display:none' in the layout.