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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:05:59+00:00 2026-06-13T13:05:59+00:00

I must slice a website which needs to be full-width and full-height (no scroll).

  • 0

I must slice a website which needs to be full-width and full-height (no scroll).
Its structure is very easy : the body has a 20px border (inside) a sidebar and a content, where will be a horizontal slider ( see image below ). enter image description here

My problem is, what do you recommend to me for setting sidebar width ?
Would you recommend to me to use fixed width for sidebar and jquery for calculate the width of the content or is better to use width for sidebar and also for content in percents ?
If there is a better way let me know.

Note : I develop it in SCSS(CSS3) and HTML5 and it also should be compatible with talbets

  • 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-13T13:06:00+00:00Added an answer on June 13, 2026 at 1:06 pm

    You could use a % width for your sidebar, but also provide min-width and max-width values. Something like this.

    Code for the demo


    Relevant HTML:

    <div class='sidebar'></div>
    <div class='content-wrp'>
        <ul class='content'>
            <li class='slice'></li>
            <!-- and so on -->
        </ul>
    </div>
    

    Relevant CSS:

    html, body, .sidebar, .content-wrp, .content, .slice {
        box-sizing: border-box;
        margin: 0;
        height: 100%;
    }
    body { border: solid 20px lightblue; }
    .sidebar {
        float: left;
        min-width: 10em; width: 20%; max-width: 32em;
    }
    .content-wrp {
        overflow-x: scroll; overflow-y: hidden;
        padding-bottom: 1em; 
    }
    .content { width: 4000px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There must a be a (very) quick and efficient way to get only elements
I have a form which is going to contain 4 fieldsets. The user must
I have a web application that our product owner has stated must respond within
I wrote a Haskell code which has to solve the following problem : we
Concatenating an element x to an array items is easy in D, it's as
I have a string: Тормозные диски and with gsub , I must get: +ТОРМОЗН*
I have a C# app that needs to do a hot swap of a
I'm using the coda slider on my website http://joelglovier.com for featured work. All was
Why is 10000000000000.126.toString() 1000000000000.127 and 100000000000.126.toString() not? I think it must have something to
I have a dilemma, maybe you can help me. I have a table which

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.