IF there is a div say
<div class="ref"><contents goes here</div>
-
How to specify in the css as body of the div .Meaning
<style> .ref body { /* ref body contents goes here*/ } </style>Can anything like the above be done?
-
If any one can explain the below also
<style> .a > .bb { } </style>
What does the above mean?
Thanks..
For the first one, it’s not totally clear what you mean. Just using
.ref { /* CSS here */ }will target thatdivelement. If you mean adding content via CSS, it’s only possible using the:beforeand:afterpseudo slectors:Note: you can’t put HTML in there, only text.
For the second one, it looks for all elements with a class of
bbthat are direct children of classa. For example, it will match thepin this codeBut it won’t match this: