Forum Moderators: not2easy
<section id="2">
no info tag here
</section>
The question is, is there a way to set the second tag to display:none, and still have the first one display:[whatever]. I thought I had seem somewhere that you could access parent tags throgh children or something, but I can't find anything on it. Anyone have any ideas, or is this just an impossible task?
CSS2 allows you to select based on an element's parents* (' ', '>') and to a limited extent siblings of its parents ('+'). CSS3 allows you slightly more leeway in selecting siblings of an element's parents ('~').
* Its easier to see how a selector matches if you reverse it.