Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Half/Half Background
    primarykey
    data
    text
    <p>I have searched every where for an answer to this. i have a design that I am trying to code using divs and css. There is a gradient in the top half of the image that goes form left to right and is different colors. The problem I am finding is that I can do it half and half, and I was able to finally get the image to center but part of it is hiding underneath the background. </p> <p>(http://pretty-senshi.com/final-final.html) &lt;-- sample of the design so far</p> <p><a href="http://pretty-senshi.com/original.png" rel="nofollow">http://pretty-senshi.com/original.png</a> &lt;-- the original design</p> <p><a href="http://pretty-senshi.com/gradient.png" rel="nofollow">http://pretty-senshi.com/gradient.png</a> &lt;-- the background gradient that needs to be repeated on the X-Axis only.</p> <pre><code>&lt;html&gt; &lt;LINK href="style.css" type=text/css rel=stylesheet&gt; &lt;/head&gt; &lt;body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt; &lt;div id="container"&gt;&lt;div id="rightHalf"&gt; &lt;/div&gt;&lt;center&gt;&lt;img src="images/Final-Final_02.png" id="picture"&gt;&lt;/center&gt; &lt;div id="header2"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p></p> <p>And the CSS is:</p> <pre><code>@charset "UTF-8"; /* CSS Document */ body {background: url(images/final-final_01.png); background-repeat:repeat-x;} div#container { width:100%;} picture {z-index: 999;} #rightHalf { background: url(images/final-final_03.png); background-repeat:repeat-x; width: 50%; position: absolute; right: 0px; height: 100%; z-index: 1; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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