Note that there are some explanatory texts on larger screens.

plurals
  1. POBackground picture not working with fixed attachment
    primarykey
    data
    text
    <p>I am working with a project and I have come across an obstacle and I cannot seem to fix this problem. (Haha, fix)</p> <p>I have a page consistent of html, php's <code>&lt;?php include=""; ?&gt;</code>, javascript (and jQuery) and of course, some CSS. The problem is the CSS.</p> <p>The front page has <a href="http://www.vestervang-dejret.dk/billeder/bckground.jpg" rel="nofollow noreferrer">one background picture</a> and the subpages has <a href="http://www.vestervang-dejret.dk/billeder/skilt.jpg" rel="nofollow noreferrer">another background picture</a>.</p> <p>The subpages' picture should be positioned at "right top" and the front page picture should be positioned in a such way that the entire picture is shown.</p> <p>It worked just fine when no <code>background-attachment:</code> was specified, but I have a subpage which has more text than the page can include. This, of course, makes the page scroll. I want the picture to not move (stay fixed), but when I add a "fixed" to my <code>background:</code> in the css, the picture goes nuts. This is the order, I put my stuff in <code>background:</code></p> <pre><code>div#container { background: #ccffff url("billder/bckground.jpg") fixed no-repeat right top; } </code></pre> <p>I thought that the problem would maybe be here, but I tried to seperate the tags, or whatever it's called in css, like this:</p> <pre><code>background-color: #ccffff; background-image: url("billeder/bckground.jpg"); background-attachment: fixed; background-repeat: no-repeat; background-position: right top; </code></pre> <p>Still not working (still going <strong>wild</strong>)</p> <p>I build the page using <a href="http://www.xs4all.nl/~peterned/examples/csslayout1.html" rel="nofollow noreferrer">this method</a> to make a div have a <code>min-height:</code> in percentage. <a href="http://www.vestervang-dejret.dk" rel="nofollow noreferrer">This is the main page</a> of my project and <a href="http://vestervang-dejret.dk/omos.php" rel="nofollow noreferrer">this is the subpage</a> with a lot of text. As you can see, the main page goes crazy and the subpage's background picture is not properly shown, you cannot see the entire picture. The picture <em>is</em> <strong>fixed</strong> but not displayed the way I want it to.</p> <p>I really hope you can help me, as I've put <strong>a lot</strong> of efford into this website. </p> <p>Just to avoid any misunderstandings and annoying questions, I am not a very experienced programmer/web developer. </p> <h2>EDIT</h2> <p>To make things clear, what I want is for the background to stay fixed (scroll along with the page)</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.
 

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