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

  • Home
  • SEARCH
  • 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 6824395
In Process

The Archive Base Latest Questions

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

I am having problem with css media query in Firefox. It works correct in

  • 0

I am having problem with css media query in Firefox. It works correct in Chrome like I made two DIVs and want a scrollbar. If I decrease the screen size of firefox upto 800px then both DIVs collapse and after some pixels media query works but that not happens in Chrome.

check this fiddle http://jsfiddle.net/RMvqC/2/

  • 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-26T21:53:48+00:00Added an answer on May 26, 2026 at 9:53 pm

    Firefox & Webkit based browsers render the scrollbar differently. In Firefox, MediaQuery considered width of scrollbar which is 15px with the screen width, but in Webkit based browsers it’s not considered scrollbar with the screen width. So, that’s why the floated DIVs are collapsed in Firefox.

    I did some stuff with css may be that’s help you. (check this fiddle)

            html {
                /* force scrollbars */
                height: 101%;
            }
            body {
                margin: 0; 
                padding:0; 
                white-space:nowrap; 
            }  
            #box1,
            #box2 {
                display:inline-block;
                width: 400px;
                height: 200px;  
                vertical-align:top;
                white-space:normal;
            }
            #box1 {
                background: #ce0000;
                 margin-right:-5px;
            }
            #box2 {
                background: #8e0000;
            }
    
            @media screen and (max-width: 799px) { 
                body { 
                    white-space:normal; 
                }
                #box1,
                #box2 {
                    width: 300px;
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with CSS not displaying correctly between IE and Firefox... The
It looks like I am having a css problem in IE 8. The code
I'm having a CSS problem in Chrome (build: 17.0.9) with an image element that
I'm having a problem in the firefox browser, because everytime I update my CSS
I'm currently having a problem with CSS styles in Webkit browswers (Chrome 4.0.249.89 &
I'm having a problem setting active states through CSS. It works if I use
i'm having problem when i want to load css file with document.write() when i
I'm having a problem using CSS's display:inline property with the list-style-image: property on <li>
I'm having a problem lining up some icons and am new enough to css
I'm trying to implement a CSS menu and am having a problem with the

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.