Last active
December 22, 2015 05:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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