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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:46:30+00:00 2026-06-02T04:46:30+00:00

I’m trying to make a website with no vertical scrolling for a page, but

  • 0

I’m trying to make a website with no vertical scrolling for a page, but i need that one of the DIVs i have to expand vertically to the bottom of the page (at most), and that when it has content that does not fit, the div should create a vertical scroller.

i already have the css for the inside of the div figured out in this fiddle, creating the scroller when needed. i also have figured out how to make the container div grow to occupy exactly the vertical space it has in the page. i just can’t make them work out together!

please have in mind that in jsfiddle you won’t be able to view the content of the whole website and in that sense what you get for the 2nd fiddle doesn’t really show what’s being done, but it works as i intended though.

just another note: as they are different fiddles, the id#container div in the 1st fiddle is he id#dcontent div of the 2nd example.

there is one other thing: for a type of content, this div will scroll vertically, but for other type of content, i want it to scroll horizontally, as it will have a product “slider” displaying elements horizontally inside this DIV.

please also look at this photo because it might be easier to understand what i’m trying to say: PICTURE

i tried looking to other questions regarding these topics, but none seemed to cover all of the aspects i’m trying to solve… :S

if there is something else i can provide to help you/me 🙂 figuring it out, pls let me know!

thanks!

EDIT1: fixed typos

EDIT2: added picture for explanation

  • 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-02T04:46:32+00:00Added an answer on June 2, 2026 at 4:46 am

    Well, after long research, i found a workaround that does what i need:
    http://jsfiddle.net/CqB3d/25/

    CSS:

    body{
        margin: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        height: 100%; 
        max-height: 100%; 
    }
    
    #caixa{
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    #framecontentTop, #framecontentBottom{
        position: absolute; 
        top: 0;   
        width: 800px; 
        height: 100px; /*Height of top frame div*/
        overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
        background-color: navy;
        color: white; 
    }
    
    #framecontentBottom{
        top: auto;
        bottom: 0; 
        height: 110px; /*Height of bottom frame div*/
        overflow: hidden; /*Disable scrollbars. Set to "scroll" to enable*/
        background-color: navy;
        color: white;
    }
    
    #maincontent{
        position: fixed; 
        top: 100px; /*Set top value to HeightOfTopFrameDiv*/
        margin-left:auto;
        margin-right: auto;
        bottom: 110px; /*Set bottom value to HeightOfBottomFrameDiv*/
        overflow: auto; 
        background: #fff;
        width: 800px;
    }
    
    .innertube{
        margin: 15px; /*Margins for inner DIV inside each DIV (to provide padding)*/
    }
    
    * html body{ /*IE6 hack*/
        padding: 130px 0 110px 0; /*Set value to (HeightOfTopFrameDiv 0 HeightOfBottomFrameDiv 0)*/
    }
    
    * html #maincontent{ /*IE6 hack*/
        height: 100%; 
        width: 800px; 
    }
    

    HTML:

    <div id="framecontentBottom">
        <div class="innertube">
            <h3>Sample text here</h3>
        </div>
    </div>
    <div id="maincontent">
        <div class="innertube">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed scelerisque, ligula hendrerit euismod auctor, diam nunc sollicitudin nibh, id luctus eros nibh porta tellus. Phasellus sed suscipit dolor. Quisque at mi dolor, eu fermentum turpis. Nunc posuere venenatis est, in sagittis nulla consectetur eget... //much longer text...
        </div>
    </div>
    

    might not work with the horizontal thingy yet, but, it’s a work in progress!

    I basically dropped the “inception” boxes-inside-boxes-inside-boxes model and used fixed positioning with dynamic height and overflow properties.

    Hope this might help whoever finds the question later!

    EDIT: This is the final answer.

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put

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.