My html cannot be changed, so I need to map a new css stylesheet to the existing elements on the page.
So I have this for a heading:
Existing:
<div class="title">Hello</div>
My new css for this page, has new css and markup but the html looks like:
<h2><span>Hello</span></h2>
i need to make the first snippet look exactly the same as the bottom <h2>
snippet.
How can I do this w/o changing the html ?
Update
My HTML, that I cannot alter, is:
<div class=title>Hello</div>
I have a new stylesheet that I have to implement, but it has a style , but it only works on:
<h2><span>title</span></h2>
So I have to change the behavior of the class title, to mimic the output of what <h2><span>
does.