Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="example">
  <img src="https://assets.imgix.net/unsplash/mountains.jpg?shad=20&w=1050&chromasub=444&fm=pjpg&usm=20&h=600&fit=crop&exp=-10&mark=https%3A%2F%2Fassets.imgix.net%2F~text%3Fw%3D600%26txtclr%3Dfff%26txt%3DLIFE+IS+A+CLIMB%2C+BUT+THE+VIEW+IS+GREAT%26w%3D400%26txtsize%3D80%26txtlead%3D0%26txtpad%3D60%26txtfont%3Davenir-black%26txtalign%3Dcenter&markalign=center%2Cmiddle&txt=%23wordsofwisdom&txtalign=center&txtclr=fff&txtsize=24&txtpad=40&blend=https%3A%2F%2Fassets.imgix.net%2Fblog%2Fblog-blends.pdf%3Ffm%3Dpng%26page%3D3&balph=50&bm=screen&bs=inherit">
  <br>
  <a href="https://sandbox.imgix.com/view?url=https%3A%2F%2Fassets.imgix.net%2Funsplash%2Fmountains.jpg%3Fbs%3Dinherit%26bm%3Dscreen%26balph%3D50%26blend%3Dhttps%253A%252F%252Fassets.imgix.net%252Fblog%252Fblog-blends.pdf%253Ffm%253Dpng%2526page%253D3%26txtpad%3D40%26txtsize%3D24%26txtclr%3Dfff%26txtalign%3Dcenter%26txt%3D%2523wordsofwisdom%26markalign%3Dcenter%252Cmiddle%26mark%3Dhttps%253A%252F%252Fassets.imgix.net%252F~text%253Fw%253D600%2526txtclr%253Dfff%2526txt%253DLIFE%2BIS%2BA%2BCLIMB%252C%2BBUT%2BTHE%2BVIEW%2BIS%2BGREAT%2526w%253D400%2526txtsize%253D80%2526txtlead%253D0%2526txtpad%253D60%2526txtfont%253Davenir-black%2526txtalign%253Dcenter%26exp%3D-10%26fit%3Dcrop%26h%3D600%26usm%3D20%26fm%3Dpjpg%26chromasub%3D444%26w%3D1050%26shad%3D20"
  class="button" target="_blank">View Parameters</a>
</div>
<section class="content">
  <article>
    <h1>Multiline Text Compositing with imgix</h1>
    <p>These are examples demonstrating how multi line text fields can be applied using the watermark parameters. The examples also show how blend, and image adjustments such as exposure can be used to make content look more stylized. Parameter breakdowns
      can be viewed using imgix <a href="https://sandbox.imgix.com">sandbox</a>.</p>
    <figure>
      <img src="https://assets.imgix.net/unsplash/bridge.jpg?shad=20&w=1050&chromasub=444&fm=pjpg&usm=20&h=600&fit=crop&exp=-10&mark=https%3A%2F%2Fassets.imgix.net%2F~text%3Fw%3D600%26txtclr%3Dfff%26txt%3D%E2%80%9CSometimes%2Bwhen%2Byou%2Binnovate%2C%2Byou%2Bmake%2Bmistakes.%2BIt%2Bis%2Bbest%2Bto%2Badmit%2Bthem%2Bquickly%2C%2Band%2Bget%2Bon%2Bwith%2Bimproving%2Byour%2Bother%2Binnovations.%E2%80%9D+%E2%80%94+Steve+Jobs%26w%3D900%26txtsize%3D40%26txtlead%3D0%26txtpad%3D60%26bg%3D55002228%26txtfont%3DHelveticaNeue-Thin&markalign=center%2Cmiddle&txt=%23wordsofwisdom&txtalign=center&txtclr=fff&txtsize=24&txtpad=40&blend=https%3A%2F%2Fassets.imgix.net%2Fblog%2Ftexture.jpg%3Finvert%3Dtrue%26fit%3Dcrop%26h%3D900%26w%3D1200&balph=50&bm=screen">
      <pre class="single-line sandbox">
        <a href="https://sandbox.imgix.com/view?url=https%3A%2F%2Fassets.imgix.net%2Funsplash%2Fbridge.jpg%3Fshad%3D20%26w%3D1050%26chromasub%3D444%26fm%3Dpjpg%26usm%3D20%26h%3D600%26fit%3Dcrop%26exp%3D-10%26mark%3Dhttps%253A%252F%252Fassets.imgix.net%252F~text%253Fw%253D600%2526txtclr%253Dfff%2526txt%253D%25E2%2580%259CSometimes%252Bwhen%252Byou%252Binnovate%252C%252Byou%252Bmake%252Bmistakes.%252BIt%252Bis%252Bbest%252Bto%252Badmit%252Bthem%252Bquickly%252C%252Band%252Bget%252Bon%252Bwith%252Bimproving%252Byour%252Bother%252Binnovations.%25E2%2580%259D%2B%25E2%2580%2594%2BSteve%2BJobs%2526w%253D900%2526txtsize%253D40%2526txtlead%253D0%2526txtpad%253D60%2526bg%253D55002228%2526txtfont%253DHelveticaNeue-Thin%26markalign%3Dcenter%252Cmiddle%26txt%3D%2523wordsofwisdom%26txtalign%3Dcenter%26txtclr%3Dfff%26txtsize%3D24%26txtpad%3D40%26blend%3Dhttps%253A%252F%252Fassets.imgix.net%252Fblog%252Ftexture.jpg%253Finvert%253Dtrue%2526fit%253Dcrop%2526h%253D900%2526w%253D1200%26balph%3D50%26bm%3Dscreen" class="sandbox-link" title="View in Sandbox" target="_blank">View in Sandbox</a>
        <code>https://assets.imgix.net/unsplash/bridge.jpg?shad=20&w=1050&chromasub=444&fm=pjpg&usm=20&h=600&fit=crop&exp=-10&mark=https%3A%2F%2Fassets.imgix.net%2F~text%3Fw%3D600%26txtclr%3Dfff%26txt%3D%E2%80%9CSometimes%2Bwhen%2Byou%2Binnovate%2C%2Byou%2Bmake%2Bmistakes.%2BIt%2Bis%2Bbest%2Bto%2Badmit%2Bthem%2Bquickly%2C%2Band%2Bget%2Bon%2Bwith%2Bimproving%2Byour%2Bother%2Binnovations.%E2%80%9D+%E2%80%94+Steve+Jobs%26w%3D900%26txtsize%3D40%26txtlead%3D0%26txtpad%3D60%26bg%3D55002228%26txtfont%3DHelveticaNeue-Thin&markalign=center%2Cmiddle&txt=%23wordsofwisdom&txtalign=center&txtclr=fff&txtsize=24&txtpad=40&blend=https%3A%2F%2Fassets.imgix.net%2Fblog%2Ftexture.jpg%3Finvert%3Dtrue%26fit%3Dcrop%26h%3D900%26w%3D1200&balph=50&bm=screen</code>
      </pre>
      <figcaption>Click the IX to view parameter breakdown in sandbox.</figcaption>
    </figure>
    <p>Read more about our multiline typesetting featureset in our <a href="https://www.imgix.com/docs/reference/typesetting-endpoint" target="_blank">documentation</a>, you can also check out more <a href="https://blog.imgix.com/2016/01/12/multiline-text-overlays-typesetting-endpoint.html"
      target="_blank">multiline endpoint examples and best practices</a>.</p>
    </div>
    <div class="button-group">
      <a href="https://blog.imgix.com/2016/01/12/multiline-text-overlays-typesetting-endpoint.html" class="button" target="_blank">imgix Typesetting</a>
      <a href="https://imgix.com" target="_blank" class="button">Visit imgix.com</a>
    </div>
  </article>
</section>

<footer>
  <hr>
  <a href="https://imgix.com"><img src="https://assets.imgix.net/presskit/imgix-presskit.pdf?page=3&fm=png&w=320&dpr=2" width="160" height="60"></a>
</footer>
              
            
!

CSS

              
                .example{
  display:block;
  margin:0 auto;
  vertical-align:top;
  width:50%;
  text-align:center;
  img{
    max-width:100%;
    margin-bottom:.5em;
  }
  
  @media(max-width:768px){
    width:100%;
    padding:0em 0 1em 0;
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console