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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:13:54+00:00 2026-06-10T01:13:54+00:00

I’m having a few issues with trying to customize Twitter Bootstrap for my rails

  • 0

I’m having a few issues with trying to customize Twitter Bootstrap for my rails app.

1) When you type in the search box the text seems to resize down slightly which gives it a weird stretching effect:

Search Bar Form

 <form class="navbar-search pull-right">
   <input type="text" class="search-query span2">
   <div class="icon-search"></div>
 </form>

.navbar-search {
  .input-prepend {
    margin-bottom: 0;
  }
  .search-query {
    padding-left: 29px;
    background-color: hsl(360, 0%, 17%) !important;
  }
  .icon-search {
    position: absolute;
    top: 6px;
    left: 11px;
    background-image: url("http://twitter.github.com/bootstrap/assets/img/glyphicons-halflings-white.png");
  }
  .search-query:focus, .search-query.focused {
    color: $white;
    padding-left: 30px;
  }
}

To get a better idea, here’s another photo with the focused text color changed to gray:*

enter image description here


2) When resizing the navbar, it apparently doesn’t keep the navbar attached to the right side of the screen:

Nav Bar Resize

<header class="navbar center">
  <div class="navbar-inner">
    <div class="container">
      <%= link_to image_tag("logo.png", size: "275x275", border: 0, alt: "logo"), root_path, id: "logo" %>
        <nav>
          <%= link_to "New Post", newpost_path, class: "btn btn-custom" %>
          <%= link_to "Browse Posts", posts_path, class: "btn btn-custom" %>
          <ul class="nav pull-right">
            <% if signed_in? %>
              <li class="active"><%= link_to "Users", users_path %></li>
              <li id="fat-menu" class="active dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                <b class="caret">Account </b>
              </a>
              <ul class="dropdown-menu">
                <li><%= link_to "Profile", current_user %></li>
                <li><%= link_to "Settings", edit_user_path(current_user) %></li>
                <li class="divider"></li>
                <li>
                  <%= link_to "Sign out", signout_path, method: "delete" %>
                </li>
              </ul>
              </li>
            <% else %>
              <li class="active"><%= link_to "Sign in", signin_path %></li>
            <% end %>
          </ul>
          <form class="navbar-search pull-right">
            <input type="text" class="search-query span2">
            <div class="icon-search"></div>
          </form>
        </nav>
      </div>
    </div>
</header>

.navbar-inner {
  background-color: $yellow;
  background-image: none;
  background-repeat: no-repeat;
  filter: none;
}

I Tried Cobaco’s suggestions and here are the results (still have problems, left side touches the browser, right side has a gutter space and the bar is still being squeezed.):

Resizing

Edit: The table-row and table-cell suggestion worked, however I had to make some modifications to the background and the left side still isn’t flush.

  • 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-10T01:13:55+00:00Added an answer on June 10, 2026 at 1:13 am

    for queston 1):

    try using css2.1 table display:

    .home-row {display: table-row;}
    .home-row>.span4 {display: table-cell;}
    

    see http://www.w3.org/TR/CSS21/tables.html for more on that
    browsersupport for CSS Table Display is good these days (see http://caniuse.com/css-table only IE7 and below don’t support that)

    for 3)

    .navbar {position: relative; right: 0;}
    

    should keep it attached to the right-side

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

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to select an H1 element which is the second-child in its group

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.