html - Can I use CSS to make one element visually identical to another in font size, weight, etc.? -


so let's have div tag:

<div class="testhead"></div> 

i want intents , purposes visually identical <h1> tag font , feel, because there'd issues using <h1> tag. there easy way set in css? html5/css3 ok here.

the short answer is: no, can't emulate style of element in css. few alternatives:

  • use javascript/jquery copy computed styles of element. see question more information: can jquery css styles associated element?
  • manually copy computed styles developer view ("inspect element") of element new element's css.

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -