Show Child Div within Hidden Parent Div

Set the parent class’s visibility to hidden or collapse. Set the child to visible. Something like this:

.parent>.child
{
    visibility: visible;
}

.parent
{
  visibility: hidden;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

Full example:
http://jsfiddle.net/pread13/h955D/153/

Edited with help from @n1kkou

Leave a Comment