Image displays at size different to the html code.
-
Using the default TwentyTen theme, I have a Page with hand-coded html in which images are set to display at 100px – but they’re showing in a browser at 150px, despite the source code also showing 100px.
Why? I’m assuming the size is being over-ridden by something in the WP css.
Even when giving them a class attribute which is so deliberately-oddly named that it can’t possibly clash with anything in the default css, they still display at a size different to that shown in the source.
Only by setting a width and height in their css attribute can I get them to display at the intended size (and as shown in the source).
The topic ‘Image displays at size different to the html code.’ is closed to new replies.