How to let a div behave like another div?

Tags: css

Problem :

I am making a child theme out of a parent theme. In the child theme i have some div's which should behave (style-wise) almost exact the same as div's in the parent theme. Parent theme has HTML Wysiwyg

And in my child theme i like to use HTML Wysiwyg

How can i give div "edButtonHTMLChild" the same .css style as edButtonHTML without altering the parent .css file?

Something like

#edButtonHTMLChild = #edButtonHTML 


Solution :

Normal CSS does not support inheritance; you need to add the child's selector to the parent's ruleset:

#edButtonHTMLChild, #edButtonHTML{

or use Javascript to apply the same styles.

    CSS Howto..

    How to calculate padding-top in % of the given div relative to its parent div

    With Watin, how do I wait until an element gets a certain CSS class?

    How can I get the current state of my div animation?

    How can change the style of
      tag in CSS

    How to set an Ionic list item height with a background image

    How to hide a div from another div using CSS

    How do you tell which css class to modify?[Example inside]

    HTML/CSS current active menu does not show active

    How to wrap a DIV around a DIV with CSS

    How to make slanted CSS arrow pointing to a div

    How to create a folding ribbon heading with inside gradient?

    Google Apps Script How to link to JS or CSS file on Google Drive

    how can i add style with CSS to