Skip to content

Instantly share code, notes, and snippets.

@robincornett
Last active December 22, 2015 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robincornett/6425548 to your computer and use it in GitHub Desktop.
Save robincornett/6425548 to your computer and use it in GitHub Desktop.
styling for smaller images on responsive sites. in effect at smallest (phone) screen sizes.
@media only screen and (max-width: 767px) {
.featuredpost .alignleft, /* featured post widget */
.featuredpost .alignright,
img.alignright, /* standard image in content */
img.alignleft,
.wp-caption.alignleft, /* if you ever use smaller images with captions */
.wp-caption.alignright {
display: block;
margin: 0 auto 24px;
float: none;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment