Skip to content

Instantly share code, notes, and snippets.

@fragje
Last active August 29, 2015 14:10
Show Gist options
  • Save fragje/c0e3c4c0c71f28e3ec55 to your computer and use it in GitHub Desktop.
Save fragje/c0e3c4c0c71f28e3ec55 to your computer and use it in GitHub Desktop.
Full inline image
<!-- Current markup -->
<p class="align-center fig--full"><img alt="Carne Irland Kaia Means" class="media-image fig--full" src="http://admin.norskgolf.newsfront.no/sites/default/files/carne_irland_kaia_means.jpg" title="Carne Irland Kaia Means"></p>
<!-- Javascript modification -->
<!-- Javascript looks for .fig--full, and when if it find it, a new element is created with the class .fig--full__inner, and elements originally inside .fig--full gets addeded inside the new element -->
<p class="align-center fig--full">
<span class="fig--full__inner">
<img alt="Carne Irland Kaia Means" class="media-image fig--full" src="http://admin.norskgolf.newsfront.no/sites/default/files/carne_irland_kaia_means.jpg" title="Carne Irland Kaia Means">
</span>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment