Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1040715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:15:30+00:00 2026-05-16T15:15:30+00:00

I am working with a project and I have come across an obstacle and

  • 0

I am working with a project and I have come across an obstacle and I cannot seem to fix this problem. (Haha, fix)

I have a page consistent of html, php’s <?php include=""; ?>, javascript (and jQuery) and of course, some CSS. The problem is the CSS.

The front page has one background picture and the subpages has another background picture.

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.

It worked just fine when no background-attachment: 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 background: in the css, the picture goes nuts. This is the order, I put my stuff in background:

div#container {
    background: #ccffff url("billder/bckground.jpg") fixed no-repeat right top;
}

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:

background-color: #ccffff;
background-image: url("billeder/bckground.jpg");
background-attachment: fixed;
background-repeat: no-repeat;
background-position: right top;

Still not working (still going wild)

I build the page using this method to make a div have a min-height: in percentage. This is the main page of my project and this is the subpage 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 is fixed but not displayed the way I want it to.

I really hope you can help me, as I’ve put a lot of efford into this website.

Just to avoid any misunderstandings and annoying questions, I am not a very experienced programmer/web developer.

EDIT

To make things clear, what I want is for the background to stay fixed (scroll along with the page)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:15:30+00:00Added an answer on May 16, 2026 at 3:15 pm

    Remove fixed and set min-height (or height which I think looks better) to 750px on your <div id="container_front">...</div>.

    So it becomes this in your css:

    div#container {
        position:relative;
        margin:0 auto;
        width:900px;
        background-color: #ccffff;
        background-image: url("billeder/bckground.jpg");
        background-repeat: no-repeat;
        background-position: right top;
        background-attachment: fixed;
        height: 750px;
        min-height: 750px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project and have come across a problem that so
I've come across this scenario a few times in working on a current project.
In the current project I am working on I have come across a piece
While working on a project I have come across a way of not having
I working on project and have problem with threading and update of UI. I
I think this is something that you have come across. This has happened to
Ok so I'm working away on a project in Nodes, and I've come across
I'm working on a project for a friend and I've come across a difficult
EDIT : For anyone who might come across this post with a similar problem,
I am currently working on a project involving the canvas element and have come

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.