Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Looks like a webkit bug. I came up with the work-around below, tested on the latest Chrome and FF. In short, you'll position a div containing the background behind your main content. I also added a few styles to make IE happier.</p> <p>Given this HTML:</p> <pre class="lang-html prettyprint-override"><code>&lt;html lang="en"&gt; &lt;head&gt; &lt;style&gt; ... &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="background"&gt;bgdiv&lt;/div&gt; &lt;div class="content_pane"&gt; &lt;div class="titlebar"&gt;Leave a Comment!&lt;/div&gt; &lt;div class="comment"&gt;Your Comment.&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Combined with this stylesheet:</p> <pre><code> body{ background-color: #f3ffff; min-height: 100%; margin:0px; } .background { height: 250px; left: 0; position: absolute; /* could use fixed if you like. */ right: 0; top: 0; z-index: -10; background-image: -webkit-linear-gradient(top, rgba(99, 173, 241, 1) 0px, rgba(0, 255, 255, 0) 250px ); background-image: -moz-linear-gradient(top, rgba(99, 173, 241, 1) 0px, rgba(0, 255, 255, 0) 250px ); background-image: -o-linear-gradient(top, rgba(99, 173, 241, 1) 0px, rgba(0, 255, 255, 0) 250px ); background-image: -ms-linear-gradient(top, rgba(99,173,241,1) 0%, rgba(0,255,255,0) 250px ); /* IE10+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#63adf1', endColorstr='#0000ffff',GradientType=0 ); /* IE6-9 */ background-image: linear-gradient(top, rgba(99,173,241,1) 0%, rgba(0,255,255,0) 250px ); /* W3C */ background-position: center top, center top; background-repeat: no-repeat, repeat-x; } .content_pane { background: white; border: 1px dotted white; border: 1px solid grey; font-family: arial, sans; font-weight: bold; margin: 6em auto 5em; width: 50%; } .titlebar { background: #3f7cdb; color: white; font-family: arial, sans; padding: .25em 2ex .25em; } .comment { padding: 1em; } </code></pre> <p>It should come out looking like this, regardless of window size:</p> <p><img src="https://i.stack.imgur.com/jtQur.png" alt="Chrome image"></p>
    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.
    3. VO
      singulars
      1. This table or related slice is empty.
    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