Fri, 2010-08-20 15:17
I have this html:
<div id="first"> <form name="adminForm" .....> <p>....</p>
I want CSS to target the p as display:none and need to use those three elements. I have tried:
#first adminForm p{display:none;} but that doesn't work.
Any advice?
Fri, 2010-08-20 18:34
#1
There's no such element as
There's no such element as 'adminForm' did you mean to add a '#' or '.' to it? Other than that you need to read the posting guidelines as their isn't enough info.
Sat, 2010-08-21 04:33
#2
Use the adjacent sibling selector
#first form + p { display: none }


