CSS
#wrapper .tn{
width:auto;
height:20px;
line-height:20px;
float:left;
padding:5px 2px 5px 5px;
margin:0 5px 10px;
font-weight:bold;
background:#f0f0f0;
}
HTML
<div id="wrapper">
<div class="tn">Text</div>
<div class="tn">Text</div>
<div class="tn">Text</div>
</div>
The given codes are compatible with various web browsers like Firefox, Chrome, Safari, Opera, as well as IE9 and IE8. However, there seems to be an issue with Internet Explorer 7 where the div does not expand according to the text and covers the wrapper div in terms of width. How can this compatibility problem be addressed and resolved?