WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Picture display problem in WordPress 3 and IE6

[Resolved] Picture display problem in WordPress 3 and IE6

Viewing 7 replies - 1 through 7 (of 7 total)
  • honestly, I wouldn’t worry too much about IE6

    I agree with you Peter. Unfortunately, according to Google Analytics, 20% of my visitors are using IE6 !

    So I still looking for a solution. 🙂

    I seem to remember having a similar problem with IE6, solved by adding the dimensions to my image
    <img src=”image.jpeg” width=”150px” height=”150px” />

    But, …, it’s IE6, anything could be causing it and I don’t have the courage to start looking for it inside WP

    *coughs* http://jreject.turnwheel.com/ *coughs*

    Unfortunately, the dimensions are well managed in the default WordPress 3.0 theme (Twenty Ten) :

    <img class="aligncenter size-medium wp-image-10" title="Nénuphars" src="http://daix.com/test/wp-content/uploads/2010/09/Nénuphars-300x225.jpg" alt="" width="300" height="225" />

    Thanks for the help.

    it seems that the problem is in this line, just before the picture :

    <div id="content" role="main">

    and it’s the “content” part, not the “main”. I’m trying to find the solution in the css file.

    and exactly here, in the style.css file of the twenty ten theme :

    #content img {
    	margin: 0;
    	height: auto;
    	max-width: 640px;
    	width: auto;
    }

    IE has a rather strange way of doing things. It doesn’t understand the height: auto; width: auto;

    An idea ?

    My solution, don’t know if it’s the best one, but it works for me :

    Change :

    #content img {
    
    	margin: 0;
    
    	height: auto;
    
    	max-width: 640px;
    
    	width: auto; 
    
    }

    by :

    #content img {
    
    	height: 640;
    
    	width: 640; 
    
    }
    
    html>body #content img {
    
    	margin: 0;
    
    	height: auto;
    
    	max-width: 640px;
    
    	width: auto; 
    
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Picture display problem in WordPress 3 and IE6’ is closed to new replies.
Skip to toolbar