Forum How do I...?

auto hide header

seosamh
Just wondering if anyone has any ideas on how to do the following?

I basically want to auto hide <h1> if the user doesn't input anything into the <p>.

<h1>Heading</h1>
<p class="value-blah"></p>



Any ideas would be greatly appreciated.

Thanks

S
mikeday
Can't do this with CSS selectors I'm afraid, you will need to write a simple script or XSLT to detect the situation. The next major release of Prince will support JavaScript that can do this.
seosamh
No probs thanks, on this system i really only have access to the html/css to build the pages plus a load of class selectors to use, is this something i'd need to go back to the developers with or is it something i could do myself if pointed in the right direction within these constraints?

Edited by seosamh

mikeday
You would need to go back to the developers, and ask them to put a class on the heading if it is followed by an empty paragraph.
seosamh
Great thanks for that.