Last active
May 26, 2018 04:26
-
-
Save cliffordp/f5b89b4b21d9348a3464 to your computer and use it in GitHub Desktop.
Always center SmugMug oEmbeds
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
/** | |
* SmugMug oEmbed centering | |
* From https://tourkick.com/advice-tips-howto/smugmug-custom-domain-oembed-wordpress/ | |
*/ | |
img[src*="https://media.tourkick.com"], /* Single Image from custom domain URL */ | |
img[src*="https://photos.smugmug.com"], /* Single Image from smugmug.com URL */ | |
iframe[src*="https://api.smugmug.com"]{ /* Videos and Slideshows (multiple images) regardless of custom domain URL or smugmug.com URL */ | |
display: block; | |
margin: 0 auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment