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 6791791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:53:20+00:00 2026-05-26T17:53:20+00:00

http://www.indofolio.com/ , I’m trying to create a website with similar function to this one,

  • 0

http://www.indofolio.com/, I’m trying to create a website with similar function to this one, but I don’t understand how he did the horizontal scrolling with anchor tag without javascript.
Turn javascript off, and his website is still functionning properly. I really love the progressive enhancement he did.

Test code for horizontal anchoring, take out inline-block and float left and it works perfectly.

    <!DOCTYPE HTML>
    <html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.ab {
    width: 20%;
    height: 20%;
    float: left;
    display: inline-block;
    border: 1px solid red;

}

</style>
 </head>
 <body>
 <a href="#box1">aaaaaaa</a>
 <a href="#box2">bbbbbbb</a>
<div id="container" style="width:100%">
    <ul style="width:500%;height:2000px;background-color:red">
        <li class="ab"><a name="box1"></a>
            <div>test</div>
        </li>
        <li class="ab"><a name="box2"></a>
            <div>test2</div>
        </li>
        <li class="ab">
            <a name="box3"></a>
            <div>test3</div>
        </li>
        <li class="ab">
            <div></div>
        </li>
        <li class="ab">
            <div></div>
        </li>
    </ul>
</div>
 </body>
 </html>
  • 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-26T17:53:21+00:00Added an answer on May 26, 2026 at 5:53 pm

    Like Quentin said, but his explanation might be a bit lacking if you are new to web design. With javascript off, note that the url in changes. The homepage is www.indofolio.com/#box1 the next has #box2, etc. Those are id‘s of the content boxes that he is using. Normal behavior for an a tag is to “jump” to those points if they exist on a page and the anchor is set to do so. His home page anchor is <a class="link home selected" href="#box1">Home</a> where the href is what causes the jump to that location.

    EDIT: Here’s some reworked code for your example.

    HTML

    <div id="nav">
     <a href="#box1">B1</a>
     <a href="#box2">B2</a>
     <a href="#box3">B3</a>
     <a href="#box4">B4</a>
     <a href="#box5">B5</a>
    </div>
    <div id="container">
        <ul>
            <li class="ab" id="box1">
                <div>test1</div>
            </li>
            <li class="ab" id="box2">
                <div>test2</div>
            </li>
            <li class="ab" id="box3">
                <div>test3</div>
            </li>
            <li class="ab" id="box4">
                <div>test4</div>
            </li>
            <li class="ab" id="box5">
                <div>test5</div>
            </li>
        </ul>
    </div>
    

    CSS

    body {
        padding: 0;
        margin: 0;
    }
    .ab {
        width: 20%;
        float: left;
        padding: 0;
        margin: 0;
    }
    
    .ab div {
        height: 500px;   
        border: 1px solid red;
    }
    
    #container {
        width: 500%; /* five page widths for five horizontal pages */
        padding: 0;
        margin: 1.5em 0 0;
    }
    
    #container ul {
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    #nav {
        position: fixed;
        left: 0;
        top: 0;
    }
    
    #nav a {
        margin-right: 10px;
        display: inline-block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.kampyle.com/ in this url when you scroll one picture always moves. I want to
http://www.sitepoint.com/build-to-do-list-30-minutes/ So I was doing this (http://www.sitepoint.com/build-to-do-list-30-minutes/) tutorial and everyting went OK. but now
http://www.radikalgenc.com/bulten/ekim.htm this is a monthly newsletter. but it does not appear fine on mozilla,
http://www.cplusplus.com/reference/algorithm/for_each/ Unary function taking an element in the range as argument. This can either
http://www.security.org.sg/code/loadexe.html http://pastebin.com/QFHASx75 I've compiled this but can't get it to work properly, It runs
http://www.kampyle.com/software-feedback-analytics On this url clicking on image it's become popup, clicking on popup image
http://www.globalguideline.com/interview_questions/Questions.php?sc=C_Sharp_Programming_Language_Interview_Questions_A&page=6 In this URL, a user sees on the left side a Twitter picture
http://www.campbellcustomcoatings.com/index2.php At this site, I'm using css3's box shadow and rgba for the content
http://www.cplusplus.com/reference/clibrary/cstdlib/atoi/ Return Value On success, the function returns the converted integral number as an
http://www.html5canvastutorials.com/webgl/html5-canvas-webgl-plane-with-three-js/ In this example its just a rotating plane. I'm an html 5 beginner

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.