WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Appearance/Editor, the Stylesheet for my theme has in it the following code:

    #content img {
margin: 0;
max-width: 640px;
    #content .attachment img {
max-width: 900px;

Does this mean that if I use the 'Add an image' button in WordPress, and then pick 'From url' to post an image in a blog post, that if the image at the url is bigger than the maximum width of my blog post, that it will not matter? -- That it won't result in the image taking longer than otherwise necessary to load on the users computer?

share|improve this question
Also, next time please consider if the question is really WordPress related. If it is purely a CSS question than you will find better places to ask. See the FAQ for more and enjoy your time on WPSE! – Michal Mau Sep 18 '11 at 10:21
up vote 1 down vote accepted

No, the size of the source image still matters.

The rule only means that the image will not display wider then that.
It is there mainly to prevent the large images from breaking the layout.

This will have no effect on the download time (browser is loading the original image anyway) and you are actually making browser do some little extra work to resize the image. Also different browsers will handle this task differently so be sure to check how your images look if they are being heavily browser-resized.

Further discussion and workarounds are out of the scope of this site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.