OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
How do I set the style of an element based upon what it contains in CSS...
This page's ID:
30435
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi guys need help here. I have a div of lets say class container' which can contain divs of class 'content'. The divs would be set up to look kinda like this: [code]<div class="container"> <div class="content">...</div> <div class="content">...</div> <div class="content">...</div> </div> [/code] Basically I was wondering that is there any way in css to define the classes such that if a div of class 'container' is empty i.e. has no divs within it of class 'content' its display property is none and lets say if the div of class 'container' contains divs of class 'content' it would have a display:block style. Is there anyway to do it?
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »