Sunday, 11 August 2013

Exclude div children to have a global css rule and force them to inherite from parent

Exclude div children to have a global css rule and force them to inherite
from parent

I have this Css rule : * { font:normal 12px puertoHelve,tahoma; }
then I have divs like these: ( the Children Divs are created automatically):
<div class="asUserStyle"
style="font-weight:bold;text-align:right;font-family:times new
roman;font-size:16px;color:#000000;">test0<div>test1</div><div>test2</div></div>
Now only test0 has the style applied to it but not the other divs; they
have the previous rule. Any ideas in Css ? if not Jquery maybe..

No comments:

Post a Comment