Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is almost pure CSS solution. Tested in Chrome only. Tweak image sizes and margins to suit your needs. You only need two small images cropped from your big picture:</p> <ul> <li><a href="http://imgur.com/Vj2YD,4dDBh#1" rel="nofollow">grain.png</a> for content area background</li> <li><a href="http://imgur.com/Vj2YD,4dDBh" rel="nofollow">title.png</a> for top-right title area background</li> </ul> <p><strong>CSS (base.css)</strong></p> <pre class="lang-css prettyprint-override"><code>* { margin: 0px; padding: 0px; } #title_element { position: absolute; right: 0px; top: 0px; width: 191px; height: 28px; background: #1f252b; background: url("title.png") no-repeat; z-index: 1; } h1 { margin-left: 20px; margin-top: 2px; color: #fff; font-size: 16px; text-align: center; } #title_bar { position: relative; background: #1f252b; height: 6px; margin-top: 21px; border-left: 1px solid #4d5259; border-right: 1px solid #4d5259; border-top: 1px solid #4d5259; -webkit-border-top-left-radius: 5px; border-top-left-radius: 5px; } #content { position: relative; background: #191e25; background: url("grain.png") repeat; border: 2px solid #191e25; -webkit-border-bottom-left-radius: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; } </code></pre> <p><strong>HTML (index.html)</strong></p> <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Test&lt;/title&gt; &lt;link rel="stylesheet" href="base.css" type="text/css" media="screen"/&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="title_element"&gt; &lt;h1&gt;Your Title&lt;/h1&gt; &lt;/div&gt; &lt;div id="title_bar"&gt; &lt;/div&gt; &lt;div id="content"&gt; &lt;p&gt;Lots&lt;/p&gt; &lt;p&gt;of&lt;/p&gt; &lt;p&gt;text&lt;/p&gt; &lt;p&gt;to&lt;/p&gt; &lt;p&gt;test&lt;/p&gt; &lt;p&gt;this layout to work ok&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

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