Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
Richard, please go through your questions and mark some answers as accepted. It will raise your accept rate and people will be more happy to help .) –  Michal Mau Sep 18 '11 at 10:20
1  
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

1 Answer 1

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

 
discard

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.