Note that there are some explanatory texts on larger screens.

plurals
  1. PO7 Divs, how to make they stay where the picture say?
    primarykey
    data
    text
    <p><a href="http://img13.imageshack.us/img13/9776/dviswheretogo.png" rel="nofollow noreferrer">alt text http://img13.imageshack.us/img13/9776/dviswheretogo.png</a></p> <p>Blue is where the image of the corners will go</p> <p>Green is a repeating image on the x axis on the top, all part of the same template!</p> <p>And orange is a simgle image repeating on the y axis</p> <p>For clarification here is what I've tried so far, i'm angry about this because when I use relative position it breaks because of an with background that is above! Anyway I need to define a height and width for each item!</p> <pre><code> .sheet {position:relative; top:140px; width:1000px;} .tl { background:url(../images/sheet_top_left-trans.png) no-repeat; width:20px; height:20px; top:0px; left:0px;} .tm { background:url(../images/sheet_top-trans.png) repeat-x; width:960px; height:20px;} .tr { background:url(../images/sheet_top_right-trans.png) no-repeat; width:20px; height:20px; top:0px; right:0px;} .content { background:url(../images/sheet_middle.png) repeat-y; top:20px; width:1000px; height:400px;}/* Demonstration only, please remove later */ .bl { background:url(../images/sheet_bottom_left-trans.png) no-repeat; width:20px; height:30px;} .bm { background:url(../images/sheet_bottom-trans.png) repeat-x; height:30px; width:960px; bottom:0px; left:20px;} .br {} </code></pre> <p>and the html</p> <pre><code> &lt;div class="sheet"&gt;&lt;!-- Glass Effect Starts here --&gt; &lt;div class="tl"&gt;&lt;/div&gt; &lt;div class="tm"&gt;&lt;/div&gt; &lt;div class="tr"&gt;&lt;/div&gt; &lt;div class="content"&gt;Here we go again&lt;/div&gt; &lt;div class="bl"&gt;&lt;/div&gt; &lt;div class="bm"&gt;&lt;/div&gt; &lt;div class="br"&gt;&lt;/div&gt; </code></pre> <p>If I use absolute postitioning I can't make the bottom images stick to it! tho it works at the top!</p> <p><strong>Now I've found I way to do it that is cross-browser (even IE6 just don't use transparent PNG as I did) here we go:</strong></p> <p>HTML:</p> <pre><code> &lt;div class="sheet"&gt; &lt;div class="top_sheet"&gt; &lt;div class="tl"&gt;&lt;/div&gt; &lt;div class="tm"&gt;&lt;/div&gt; &lt;div class="tr"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="middle"&gt;.&lt;/div&gt; &lt;div class="bottom_sheet"&gt; &lt;div class="bl"&gt;&lt;/div&gt; &lt;div class="bm"&gt;&lt;/div&gt; &lt;div class="br"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- End of the sheet class --&gt; </code></pre> <p>CSS:</p> <pre><code>.sheet {position:relative; width:1000px; top:10px;} .top_sheet {width:1000px; height:20px;} .tl {float:left; background:url(../images/sheet_top_left-trans.png) no-repeat; height:20px; width:20px;} .tm {float:left; background:url(../images/sheet_top-trans.png) repeat-x; height:20px; width:960px;} .tr {float:right; background:url(../images/sheet_top_right-trans.png) no-repeat; height:20px; width:20px;} .middle {position:relative; background: url(../images/sheet_middle.png) repeat-y; width:1000px; height:400px;} bottom_sheet {width:1000px; height:30px;} .bl {float:left; background:url(../images/sheet_bottom_left-trans.png) no-repeat; width:20px; height:30px;} .bm {float:left; background:url(../images/sheet_bottom-trans.png) repeat-x; width:960px; height:30px;} .br {float:right; background:url(../images/sheet_bottom_right-trans.png) no-repeat; width:20px; height:30px;} </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.
 

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