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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:56:38+00:00 2026-06-14T12:56:38+00:00

I created a web page using the bootstrap grid. This page is rendered perfectly,

  • 0

I created a web page using the bootstrap grid.
This page is rendered perfectly, as expected, when I just open it with a browser.
The container in bootstrap is smaller than the screen, everything is perfect.

BUT, if I render the exact same page as an application.html.erb layout in rails, it always send this message to the browser: @media (min-width: 1200px). This makes my page become a bit bigger than my screen. The rest is fine. Bootstrap works but the container width is too big! In the plain page it is 960px, which is perfect!

Why?

I don’t want this to happen! It is really weird. I read some posts where people say it happened to them, but I have the two pages side by side and “inspect element” shows @media (min-width: 1200px) in the css of the “row” class in the rails page and nothing in the other!

I am totally not willing to hack the bootstrap css. I would just like to figure out what is happening and fix it ! I would really like to use it as a stylesheet and not as a gem…

thanks so much in advance!

P.S.:
In rails, I copied the bootstrap folder in my /assets/stylesheets/ directory

  • 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-14T12:56:39+00:00Added an answer on June 14, 2026 at 12:56 pm

    How about adding your own style in the file ‘bootstrap_and_overrides.css.less’ (or any other you have)?
    In my own CSS, I have this:

    .container {
        width: 960px;
    }
    

    and the problem is solved. 🙂

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

Sidebar

Related Questions

I created a web page that print some text using JSF I've added spaces
I'm using this layout to create a 2 column fluid web page. What I
I have created a web page using JQuery Mobile that has a link at
I have created a three page web page and I'm using an external css
I have created an asp.net web page and I am using twitterizer.framework.dll. Below is
I'm using GWT to present Disclosure Panels on my web page. I've succesfully created
I've created a motion GIF, and implemented it into a web page button using
I have created a web page and using load() function to load the pages
I am using RUBY to screen scrap a web page (created in asp.net) which
I have created an App for google chrome which just opens a web page.

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.