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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:49:23+00:00 2026-06-11T20:49:23+00:00

I used http://reddit.com ‘s website as a reference to build a css webpage where

  • 0

I used http://reddit.com‘s website as a reference to build a css webpage where the side bar always remains the same size on the page, while the whole left side shrinks gradually when the screen does.

sidebar{width:400px;float:right;/*rest doesn't matter*/}
leftside{width:auto;height:auto;;overflow:hidden;/* no float */} // i think this
// is where i missed up, reddit's site didn't have this

Anyways, this site won’t scale at all on a mobile device, the sidebar takes up the entire screen, but on reddit’s site it scales nicely. How can I make my site scale? Do i need another div to wrap the side and the left side? I tried to look this up online, but everyone just said to not use px to define the side bar, but reddit used px and it still scaled…

Thanks

  • 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-11T20:49:24+00:00Added an answer on June 11, 2026 at 8:49 pm

    If on mobile device the thing scale its probably due to a media queries that use the screen size because on my browser reddit act the same as your description and the side bar take the whole browser size when i resize it down to the size of a mobile device.
    if you want it not to act like reddit does on browser you can eighter; use media queries along with the width of the browser and resize the side bar in these rules or; use some sort of javascript or html5 and css to set the side bar into a button and make it expand to the whole screen when OnClick

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

Sidebar

Related Questions

I've used Widerbug ( http://www.command-tab.com/2008/01/19/widerbug-widescreen-firebug/ ) to open Firebug in the right side of
So I have used - http://www.roundedcornr.com/ - to generate some rounded corners via CSS.
where used on http://localhost:8692/Contacts/Default.aspx Response.Redirect( http://www.google.com ) redirects to http://localhost:8692/Contacts/http%3a%2f%2fwww.google.com The problem just appeared
I used the same software used here http://us.gn.bartal.org/ to create a fixed width/height treemap
I used this example (http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/) to upload file from android device to server, it
I used the code from http://www.rgagnon.com/javadetails/java-0580.html to get Motherboard Id, but the result is
I used SSIS and [SharePointListAdapters][1] [1]: http://sqlsrvintegrationsrv.codeplex.com/releases to import data from my SharePoint 2010
I have used this website for testing http://www.webpagetest.org and among some suggestions for optimization
I have used http://readysetraphael.com/ to convert a svg to a path in raphaeljs. I
Anyone used http://github.com/manifestinteractive/jqvmap/ ? These work: $('#map').vectorMap('set', 'colors', { us: '#8EE5EE' }); $('#map').vectorMap('set', 'colors',

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.