css - Is it possible to resize all images on a page to a specific size? -


i creating email flyer , have multiple images want @ 140px 140px 300x300 or 400x400. don't want go resize each image there can quite few , flyer weekly update possible use css tell images (or images have classes) resize 140px?

i going post code it's quite vague request there no relevant code can show question.

maybe if <span>...</span> , give span class, possible way?

if markup newsletter may force dimensions both style attribute , inline width , height attribute, e.g.

<img src="..." style="width:140px; height:140px" width="140" height="140" /> 

but, anyway, suggest perform kind of batch task automatic resize of images (e.g. using gruntjs), save precious bandwidth on server in store static assets. (conversely, if embed images email, users appreciate lighter size)


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -