View Full Version : iframe, Background-size & CSS3 problem

06-12-2012, 05:51 PM
I have a page that displays a mobile site within an iframe (both on the same domain). The logo at the top and the contact icons above the keyboard of the iPad image are not resizing properly. The problem only occurs with Internet Explorer 8 and 9. I know that both sets of images use special css code to display better image quality on a HD/Retina displays. Everything views fine in the latest versions of Firefox and Chrome, its just MSIE 8 & 9 with the problem. I inherited this site, and my knowledge of CSS, CSS3 etc is very limited. Any suggestions would be greatly appreciated. Link below.


06-12-2012, 06:13 PM
Instead of putting the logo on BG with CSS try this;

<div class="logo">
<img src="../images/logo.png" width="231px" height="40px" />


06-12-2012, 06:25 PM
Thank you for your reply. It's my understanding that within the css there is code for "background-size" that provides the option to display the logo and icon images with the larger size images when the website is viewed with a mobile device with retina display. If I do as you suggest I believe I would lose that option.

06-12-2012, 06:32 PM
Wll the background-size property is supported in IE9+, Firefox 4+, Opera, Chrome, and Safari 5+.

And how you want the image to resize anyways you have given specific height and width in pixels for you background-size and the logo div? This will make them X height and X width always. You can use % though if you want the div be always lets say 20% width of the display.

06-13-2012, 12:48 AM
You can use :

background.image {
width: 350px; height: 75px;
background: url("logo.jpg") no-repeat;
logo {
display: block;
width: 0;
height: 0;
overflow: hidden;

I checked it out. Are you going to use JavaScript to go back/home in the frame page. ?