Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have successfully came up with 2 ways to do this:</p> <p><strong>Method 1</strong><br></p> <p><a href="http://meyers.ipalaces.org/extra/stack1.html" rel="nofollow noreferrer"><strong>Click here to view demo</strong></a></p> <p>Using CSS3 <code>background-size</code> I was able to set 2 <code>div</code> elements to on top of each other with <code>min-height: 50%</code> and then using <code>background-size: 100% 50%</code> they successfully accomplish what I am looking for.</p> <p>This method was just a proof of concept, as IE6-8 does not support <code>background-size</code>, I didn't pursue tweaking this method perfectly. As it stands, it currently messes up when you scroll despite have <code>background-attachment: fixed;</code>. I ditched this CSS3 method in order to look for better methods using CSS tricks... <hr> <strong>Method 2</strong></p> <p><a href="http://meyers.ipalaces.org/extra/test2.html" rel="nofollow noreferrer"><strong>Click here to view demo</strong></a></p> <p>Following the examples I found from <strong>A List Apart</strong> (<a href="http://www.alistapart.com/articles/supersize-that-background-please/" rel="nofollow noreferrer">Article</a> | <a href="http://css-tricks.com/perfect-full-page-background-image" rel="nofollow noreferrer">Example1</a> | <a href="http://css-tricks.com/how-to-resizeable-background-image/" rel="nofollow noreferrer">Example2</a>). I used Technique #2 from Example 1, and I was able to emulate what I wanted to do using just CSS2. (I am not 100% sure how or why this works, but it does)</p> <p>Because I am also going to use <a href="http://www.css3pie.com" rel="nofollow noreferrer"><strong>CSS3PIE</strong></a> to give IE6-8 CSS3 the ability to do <code>linear gradients</code>, <code>border-radius</code>, and <code>box-shadow</code>; I opted to use a linear gradient instead of an image for the top background.</p> <p><strong>Problems</strong></p> <ul> <li>CSS2 Method from Technique #2, Example 1 does not work with IE6 Correctly</li> <li>Creates excessive lag in all current Internet Explorers</li> </ul>
    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