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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:32:24+00:00 2026-06-17T07:32:24+00:00

I’ve been developing a mobile layout with a horizontal scroll. But now I have

  • 0

I’ve been developing a mobile layout with a horizontal scroll.

But now I have a problem:

There is a NAV element that sticks to the bottom of the page, no problem there, but I want to achieve an effect of a “corkboard” with the accompanying “frames” on the top and on the bottom. Once again, the top one is no problem at all, but I’m having a lot of trouble trying to get the bottom one to stay at the bottom, and above the NAV bar.

It’s something like this:
enter image description here

Basically, the red square is the current view/screen, the navbar stays fixed to the bottom and if I scroll to another section it stays at the bottom of the screen as intended, as does the top blue bar (the top frame).

How can I make the bottom blue bar to stay in the position intended/exemplified?

The HTML:

    <!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <title>Ptfolio</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/less.js" type="text/javascript"></script>
    <link href='http://fonts.googleapis.com/css?family=Faster+One' rel='stylesheet' type='text/css'>
</head>
<body>
    <nav>
        <ul>
            <li><a href="#splash">Home</a></li>
            <li><a href="#next">About</a></li>
            <li><a href="#circuit">Circuit</a></li>
        </ul>
    </nav>
        <div id="wrapper">
            <section id="splash">
                <header>About Me</header>
                <div>
                    Lorem ipsum just testing things
                </div>
                </section>
            <section id="next">
                <div id="frame-top">
                    <header>Portfolio</header>

                    <div id="content">&nbsp</div>
                </div>
                <div id="frame-bottom">&nbsp</div>
            </section>
            <section id="circuit">
                <header>Contact</header>
                <div class="main">
                </div>
            </section>
        </div> <!-- wrapper -->
        <script type="text/javascript" src="cordova-2.3.0.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
        </script>
</body>
</html>

and the CSS:

        /* --Meyerweb */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/* --Meyerweb */

html, body { 
    height: 100%;
    overflow-x: auto;
}

#wrapper { 
    display: table; 
    width: 350%; 
    height: 100%;
    -webkit-box-sizing: border-box;
    padding-bottom: 3em;
    position: relative;
}

#wrapper > section { 
    display: table-cell; 
    height: 100%; 
    width: 25%;
}

header {
    min-height: 2em;
    font-size: 2em;
}


section#splash {
    background: url("../img/bg_grey.png") repeat;
}

section#splash > header {
    font-family: 'Faster One', cursive;
}

section#next {
    background: url("../img/cork.jpg") repeat;
    z-index: 1;
    padding-bottom: 3.938em;
}

#frame-top {
    background: url("../img/frame.png") repeat-x;
    background-position: top;
    z-index: 3;
    width: 100%;
    padding-top: 1em;
}

#frame-bottom {
    background: url("../img/frame.png") repeat-x;
    height: 16px;
    background-position: top;
    z-index: 4;
}

#content {
    height: 100%;
    z-index: 2;
}

section#circuit {
    background: url("../img/circuit-tile-02.png") repeat;
}

.st-scroll {
    top: 0;
    left: 0;
    transition: all 0.6s ease-in-out;

    /* Let's enforce some hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}

nav {
    bottom: 0;
    position: absolute;
    background: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.3, #303030),
        color-stop(0.5, #212121),
        color-stop(0.7, #575657)
    );
    height: 3em;
    width: 100%;
    z-index: 99;
}

nav ul {
    width:  50%;
    height: 100%;
    color: #FFF;
    margin-right: auto;
    margin-left: auto;
}

nav ul li{
    width: 25%;
    height: 100%;
    display: inline-block;
}

I’ve tryed everything from margins, paddings, heigth and min-height but can’t manage to achieve the intended effect.
Can anyope point me what I’m doing wrong?

EDIT: A screenshot of the page at the moment on:
Chrome –
enter image description here

Safari –
enter image description here

  • 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-06-17T07:32:25+00:00Added an answer on June 17, 2026 at 7:32 am

    After some help from @joequincy and much hacking and tampering with the code I’ve reached the perfect solution:

        <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
        <title>Ptfolio</title>
        <link rel="stylesheet" href="css/style.css">
        <script src="js/less.js" type="text/javascript"></script>
        <link href='http://fonts.googleapis.com/css?family=Chango' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Londrina+Solid' rel='stylesheet' type='text/css'>
    </head>
    <body>
        <nav>
            <ul>
                <li><a href="#splash">Home</a></li>
                <li><a href="#next">About</a></li>
                <li><a href="#circuit">Circuit</a></li>
                <li>Placeholder</li>
            </ul>
        </nav>
        <div id="wrapper">
            <div class="cell">
                <section id="splash">
                    <header>Celso Santos</header>
                    <div class="container">
                        <div>
                            Lorem ipsum just testing things
                        </div>
                    </div>
                </section>
            </div>
            <div class="cell">  
                <section id="next">
                    <header>Portfolio</header>
                    <div id="frame-top"></div>
                        <div class="container">
                            <div id="content">&nbsp</div>
                        </div>
                    <div id="frame-bottom"></div>
                </section>
            </div>
            <div class="cell">
                <section id="circuit">
                    <header>Contact</header>
                    <div class="container"></div>
                </section>
            </div>
        </div> <!-- wrapper -->
        <script type="text/javascript" src="cordova-2.3.0.js"></script>
        <script type="text/javascript" src="js/index.js"></script>
        <script type="text/javascript">
            app.initialize();
        </script>
    </body>
    </html>
    

    and the CSS:

    /* --Meyerweb */
    /* http://meyerweb.com/eric/tools/css/reset/
       v2.0 | 20110126
       License: none (public domain)
    */
    
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, embed,
    figure, figcaption, footer, header, hgroup,
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
    }
    /* HTML5 display-role reset for older browsers */
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
        display: block;
    }
    body {
        line-height: 1;
    }
    ol, ul {
        list-style: none;
    }
    blockquote, q {
        quotes: none;
    }
    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }
    table {
        border-collapse: collapse;
        border-spacing: 0;
    }
    /* --Meyerweb */
    
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    #wrapper {
        display: table;
        width: 300%;
        height: 100%;
        -webkit-box-sizing: border-box;
        margin-bottom: -3em;
    }
    
    #wrapper > .cell { display: table-cell; height: 100%; width: 25%; }
    
    #wrapper > .cell > section { position: relative; height: 100%; }
    
    .container { 
      position: absolute; 
      top: 4em; right: 15px; bottom: 4em; left: 15px; 
      overflow-y: auto; border: 1px solid #000000; }
    
    #wrapper > section {
        display: table-cell;
        height: 100%;
        width: 25%;
    }
    
    header {
        min-height: 2em;
        font-size: 2em;
        text-align: center;
    }
    
    
    section#splash {
        background: url("../img/bg_grey.png") repeat;
    }
    
    section#splash > header {
        font-family: 'Chango', cursive;
    }
    
    section#next {
        background: url("../img/cork.jpg") repeat;
        z-index: 1;
        position: relative;
    }
    
    section#next > header {
        top: 20px;
        font-family: 'Londrina Solid', cursive;
        color: rgba(124, 52, 24, 0.92);
        text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.83);
        width: 100%;
        position: relative;
    }
    
    section#next > div#frame-top {
        background: url("../img/frame.png") repeat-x;
        background-position: top;
        z-index: 3;
        width: 100%;
        position: absolute;
        top: 0px;
        height: 16px;
    }
    
    #frame-top > header {
        font-family: 'Londrina Solid', cursive;
        color: rgba(124, 52, 24, 0.92);
        text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.83);
    }
    
    #next > .container {
        bottom: 5em;
    }
    
    #frame-bottom {
        background: url("../img/frame.png") repeat-x;
        height: 16px;
        background-position: top;
        z-index: 4;
        position: absolute;
        bottom: 3em;
        width: 100%;
    }
    
    #content {
        height: 100%;
        z-index: 2;
        min-height: 100%;
    }
    
    section#circuit {
        background: url("../img/circuit-tile-02.png") repeat;
    }
    
    #circuit > header {
        text-shadow: 0px 2px 3px #666;
    }
    
    .st-scroll {
        top: 0;
        left: 0;
        transition: all 0.6s ease-in-out;
    
        /* Let's enforce some hardware acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
    }
    
    nav {
        bottom: 0;
        position: fixed;
        height: 3em;
        width: 100%;
        z-index: 99;
        background-image: linear-gradient(bottom, #333333 10%, #525252 50%, #525252 80%);
        background-image: -o-linear-gradient(bottom, #333333 10%, #525252 50%, #525252 80%);
        background-image: -moz-linear-gradient(bottom, #333333 10%, #525252 50%, #525252 80%);
        background-image: -webkit-linear-gradient(bottom, #333333 10%, #525252 50%, #525252 80%);
        background-image: -ms-linear-gradient(bottom, #333333 10%, #525252 50%, #525252 80%);
        box-shadow: 0px -3px 3px #333333;
    }
    
    nav ul {
        width:  80%;
        height: 100%;
        color: #FFF;
        margin-right: auto;
        margin-left: auto;
    }
    
    nav ul li{
        width: 20%;
        height: 100%;
        display: inline-block;
    }
    

    I kept the table-cell, aligned everything perfectly (even with those awkward “spaces”) and then to keep everything tidy the big secret was to use overflow:hidden in the body.
    Now, this does have other problems such as that you cannot scroll vertically nor horizontally now, but given that that wasn’t a problem (navigation is supposed to be achieved using the navbar to simulate different views) it now works correctly, without any JS.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a French site that I want to parse, but am running into
I have been unable to fix a problem with Java Unicode and encoding. The
this is what i have right now Drawing an RSS feed into the php,
I have a small JavaScript validation script that validates inputs based on Regex. I
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am currently running into a problem where an element is coming back from

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.