I have a div with a nested div as follows:
<div id="myDiv"> Title of area here <div style="float:right;"> <a href="#"><img src="/ocrs/images/med_help.gif" border="0" vspace="0"></a> </div> </div>
As you can see I have the anchor tag and the img tag within another div (wrapped in the "myDiv")and I have it floated to the right.
The style on the "myDiv" is as follows:
#myDiv{
font-family: Verdana;
font-size: 11px;
color: white;
background-color: #3399FF;
padding:3px;
font-weight: bold;
text-align:center;
vertical-align:top;
text-transform:uppercase
}
</style>
These render differently in IE8 and IE7. I like the way it turns out in IE8 with the text centered in the div and the image all the way to the right. In IE7 however it turns out a bit different. I am hoping to get this to look the same in both browsers. I have tried numerous variations and just can't seem to come up with a solution. See the pic attached to see the difference in the two browser versions.
Any suggestions, tips, or tricks will be greatly appreciated. Thank you!

New Topic/Question
Reply



MultiQuote




|