Inherit all css properties from div parent to div child

advertisements

My html,

<div id="parent">
    <div id="child">

    </div>

</div>

css looks like,

#parent{
height:100px;
width:200px;
any-aother-property1:something;
any-aother-property2:something;
any-aother-property3:something;
}

Is there is any way to inherit all the properties to child at once , means can I do like,

$('#child').properties= $('#parent').properties


is this enough?

#parent, #parent > div {
    /* your properties */
}