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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:57:23+00:00 2026-06-03T20:57:23+00:00

I am using Twitter bootstrap for Rails/SASS and have notice that it applies a

  • 0

I am using Twitter bootstrap for Rails/SASS and have notice that it applies a display: block; style to my labels,label inputs and label textareas.

I am using form tags to generate a check box with a label, but the block style move the two onto different line:

  <%= f.check_box :remember_me %>
  <%= f.label :remember_me %>

My question is two fold. Should I be doing it this way? and if so how best should I override Twitter Bootstraps defaults. I would rather not have lots of !important flags in my CSS if I can avoid it.

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

    you can do it the bootstrap way and pass in a label block

    <%= f.label :remember_me, :class => "checkbox" do %>
      <%= f.check_box :remember_me %>remember me
    <% end %>
    

    on this way the checkbox also gets checkt if you click on the text. Much nicer!

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

Sidebar

Related Questions

I'm using Twitter Bootstrap 2.0.1 in a Rails 3.1.2 project, implemented with bootstrap-sass. I'm
I'm using bootstrap-sass to integrate Twitter Bootstrap in Rails but I'm having issues with
In attempting to upgrade to Bootstrap 2 (using twitter-bootstrap-rails gem), it seems that page-specific
I am using Twitter Bootstrap in my rails app. My navbar looks perfect in
I'm asking about using a Twitter Bootstrap modal window with a Rails form helper
Hey so I am using Rails PJAX for my web application with twitter bootstrap
I'm using Twitter Bootstrap. The alert HTML code is: <div class=alert alert-block> <a class=close
I am using Twitter Bootstrap to style validation_errors for a registration page: <?php echo
I'm using twitter bootstrap . I have a div with 25 px padding. I
In my Rails 3 application I'm using Twitter Bootstrap as a frame work for

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.