mgason Posted April 30, 2011 Share Posted April 30, 2011 Hi,I need to hide something that is setup by a content management system.I do not have access to the HTML. I have successfully hidden some items by targeting specific styles with display:none; and visibility:hidden;I can not figure out the CSS "path" to target the un-named div with class navMain.I can not target just target navMain style as it is used elsewhere on things I do not want to hide.I cant hide leftColumnDiv as I need SPLogo div to stay visible.How do I target that div specifically, can I ?Thanks Mark <td id="leftTD"> <div id="leftColumnDiv"> <div class="navMain"><!-- I NEED TO HIDE THIS DIV --><p>some content</p> </div> <div id="SPLogo"> <a href="http://www.sp.org"><img src="/images/SPLogo.gif" id="ctl00_Img1" border="0"></a> </div> </div><!-- close leftColumnDiv --> </td> Link to comment Share on other sites More sharing options...
jeffman Posted April 30, 2011 Share Posted April 30, 2011 If that div is ALWAYS the first child of "leftColumnDiv", this should work as a CSS selector:#leftColumnDiv div:first-child {} Link to comment Share on other sites More sharing options...
mgason Posted April 30, 2011 Author Share Posted April 30, 2011 awesome, it isthanks If that div is ALWAYS the first child of "leftColumnDiv", this should work as a CSS selector:#leftColumnDiv div:first-child {} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.