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

  • Home
  • SEARCH
  • 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 4616652
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:00:46+00:00 2026-05-22T02:00:46+00:00

I am trying to make a portfolio where if you click on ‘scroll page’,

  • 0

I am trying to make a portfolio where if you click on ‘scroll page’, the page will scroll completely until the footer image is one with the top image. So you can see one complete image when header and footer are merged.

I have searched Google and Stack Overflow, but unfortunately I couldn’t find anything that did the trick.

EDIT

i have updated the style.

On IE9 it scrolls until footer hits header and it fits good, but in google chrome it does not.
Anyone have any idea? Thank you

EDIT 2

I have managed to make the page scroll but now i have height property problems in web crossing.

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>Portfolio | S.H. MOKHTAR | 2011</title>
            <link rel="stylesheet" type="text/css" href="layout/styles.css" />


        <script>
        function pageScroll() {
            window.scrollBy(0,60); // horizontal and vertical scroll increments
            scrolldelay = setTimeout('pageScroll()',50); // scrolls every 100 milliseconds
        } 

        function stopScroll() {
            clearTimeout(scrolldelay);
        }

        </script>  

        </head>

        <body>

            <div id="header"></div>
            <div id="content"><input type="button" onClick="pageScroll()" value="Scroll Page">
    <a href="javascript:stopScroll()">Stop Scrolling</a><br>
    <br>
    </div>
            <div id="footer"><img src="layout/images/bot.png" style="width:auto; height:auto" /></div>
    </body></html>


body, html, div, input, footer{
margin: 0;
padding: 0;
border: 0;
outline: none;
}
body{
    width:100%;
}

#header{
    background:url(images/top.png); height:auto; width:auto; background-repeat:no-repeat;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 43px;
}

#content{
    margin-top:50px;
}

#footer{height:870px;
}

EDIT 3

With help i managed to resolve the height problem, The new code is up and running and for download at http://www.sushitaksteeg.nl/secret/Port.rar or live at http://www.sushitaksteeg.nl/secret/template.html for now.

My other question where i could solve this problem with help is: Height different in IE FF Chrome

Thank you

  • 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-22T02:00:47+00:00Added an answer on May 22, 2026 at 2:00 am

    Haven’t tested it, but something like this:

    $("body").scrollTop($("#yourimage").position().top);
    

    (With jQuery ofcourse for XB (Cross Browser))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying make one treeView with infinite subgroups. I can add my groups but
Trying to make a sliding panel where you can click next and back to
I'm trying to make a Pinterest-like gallery for my portfolio. Nothing too fancy, just
I re-did my portfolio site recently, and I'm trying to make it so that
I am trying to make a menu that works like the one on this
im trying make one replace in string from a array but this dont work
I am trying make such application which speak automatically when the image loaded it
Trying to make a make generic select control that I can dynamically add elements
I've been trying to make buttons using the simple structure : <a href=#/category/portfolio/ class=filter
I'm trying to make a portfolio site for myself and my programming projects. Because

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.