Is there any way (using CSS only) to add padding to an element if it is NOT the only VISIBLE child?
So far I have it using :NOT and :only-child selectors:
div span:not(:only-child) {
padding-right:5px;
}
However unfortunately if another child exists BUT it is hidden it is considered not to be the only child and the padding gets applied.
Demo here: http://jsfiddle.net/3Qr7v/
Hope that makes sense.
Thanks