60 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+3 more
DavidGuns says

How can you make responsive with image has been cropped by add_image_size?

Example:
  1. add_image_size( ‘post-nomargin’, 235, 190, true );
https://www.dropbox.com/s/l541ejnslp2ro0h/26-02-2013%201-49-37.png HTML
  1. <article>
  2. <?php the_post_thumbnail( ‘post-nomargin’ ); ?>
  3. </article>

This is bad way if I use (failed responsive style) article img { width: 100%; }

Are you have tricks? please share, sory for my bad english. :D

60 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+3 more
DavidGuns says

somebody can help me?

19 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
YuKhinThemes says

There aren’t perfect solution for this. It’s depend on your theme layout structure/logic. If your css set image width to 100% without limit (max-width/min-width) you should upload bigest image as you can because the result of scale down always better than scale up. Maybe you should make some break point base on Article’s width, ex: when Article’s width reach a number of pixel (actual size of image) description text will jump to same row with image… Again, there are no perfect solution for images in responsive webdesign (retina also). You should decide some options that best fit with your theme.

60 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+3 more
DavidGuns says

not yet found solution use image size cropped. I’m going to perfect image size use max-width, height auto.

thank you for reply.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by