Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can create three parts (top, bottom, content). Top and Bottom (no-repeat) and Content (repeat-y)</p> <h2>HTML</h2> <pre><code>&lt;div class="block"&gt; &lt;div class="top"&gt;&lt;/div&gt; &lt;div class="content"&gt; Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. &lt;/div&gt; &lt;div class="bottom"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <h2>CSS</h2> <pre><code>.block { width: 947px; } .top { background: url(https://dl.dropboxusercontent.com/u/122540013/img/unspecified-height/top.png) no-repeat; height: 60px; // set height for your image } .content { background: url(https://dl.dropboxusercontent.com/u/122540013/img/unspecified-height/content.png) repeat-y; padding: 0 57px; overflow: hidden; } .bottom { background: url(https://dl.dropboxusercontent.com/u/122540013/img/unspecified-height/bottom.png) no-repeat; height: 60px; // set height for your image } </code></pre> <h2>DEMO</h2> <p><a href="http://dabblet.com/gist/5865448" rel="nofollow">http://dabblet.com/gist/5865448</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload