How can I get the actual font-size of the #t1 element? It is obviously 26px but in all the browsers I get 16px.
<div class="editor">Hello <span id="t1">my</span><br>dear <span id="t2">world</span></div>
<button id="test">TEST</button>
<style>
.editor
{
font-size: 16px;
}
.editor:first-line
{
font-size: 26px;
}
</style>
<script>
$('#test').click(function()
{
alert( $('#t1').css('font-size') + ' vs ' + $('#t2').css('font-size') );
});
</script>