apply display none property of css on a paragraph -


i working on css , want display none p tag width refrence of div class ""abc unable cannot put , class in p tag auto generating use of refrence must in correct way. please.

here html:

<div class="abc">any text</div> <p>any text here</p> 

here css tried far:

.abc p{ display:none} 

but know not correct search on google no luck.

try adjacent sibling selector +. select element preceded former element:

.abc + p{ display:none} 

jsfiddle example


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -