Using Bootstrap in Rails: Positioning a dropup to align with another element in a footer

I am attempting to align the content as a footer, but having trouble with the dropup not lining up properly:

<footer class="footer">
<div class="container-fluid">
<div class="row">
 <div class="col-xs-12 col-sm-12 col-md-12">

  <div class="pull-left">
      <ul class="nav nav-pills">
        <li><%= link_to 'Privacy', privacy_path %></li>
        <li><%= link_to 'Contact', contact_path %></li>
        <li><%= link_to 'Help', help_path %></li>
      </ul>

    <div class="dropup">
      <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="#" style="text-decoration: none !important;"><%= t 'footer_languages' %><span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
           <li><%= link_to_unless_current "English", locale: "en" %></li>
           <li><%= link_to_unless_current "German", locale: "de" %></li>
        </ul>
    </div>
  </div>

      <ul class="social-network social-circle pull-right">
       <li><a href="#" class="icoFacebook" title="Facebook"><i class="fa fa-facebook"></i></a></li>
        <li><a href="#" class="icoTwitter" title="Twitter"><i class="fa fa-twitter"></i></a></li>
        <li><a href="#" class="icoGoogle" title="Google +"><i class="fa fa-google-plus"></i></a></li>
     </ul>
</div>
</div>
</div>
</footer>

.footer
  position: absolute
  bottom: 0
  width: 100%
  height: 40px

And here is the accompanying image: https://i.sstatic.net/ifbSf.png The color difference is due to cropping!

Any suggestions on how to achieve proper alignment?

Update 1

Following the advice of @Kundan Kumar Mourya, I have achieved these results now:

https://i.sstatic.net/QGeNl.png

Answer №1

click here to view the image

<footer class="footer">
<div class="container-fluid">
<div class="row">


  <div class="col-sm-4 pull-left">
      <ul class="nav nav-pills">
        <li>'Privacy', privacy_link</li>
        <li>link_to 'Contact', contact_link</li>
        <li>link_to 'Help', help_link</li>
      </ul>
      </div>

    <div class="col-sm-4 dropup">
      <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" href="#" style="text-decoration: none !important;"> 'select language'<span class="caret"></span></a>
        <ul class="dropdown-menu" role="menu">
           <li> link_to_unless_current "English", locale: </li>
           <li>link_to_unless_current "German", locale: </li>
        </ul>
    </div>
    <div class="col-sm-4">
    <ul class="social-network social-circle pull-right">
       <li><a href="#" class="icoFacebook" title="Facebook"><i class="fa fa-facebook">Facebook</i></a></li>
        <li><a href="#" class="icoTwitter" title="Twitter"><i class="fa fa-twitter">Twitter</i></a></li>
        <li><a href="#" class="icoGoogle" title="Google +"><i class="fa fa-google-plus">Google+</i></a></li>
     </ul>
  </div>


</div>
</div>
</footer>
I made some adjustments, take a look at the updated version containing changes in div and class names.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Generating a menu in one-hour intervals

Could someone please advise on the best approach to generate a markup like the one below using Angular: <select> <option value="0000">00:00AM</option> <option value="0100">01:00AM</option> <option value="0200" ...

Bug encountered in the Twitter Bootstrap accordion component

I've been struggling to pinpoint my error for the past few hours. I'm using Bootstrap accordion along with a handlebars template engine, and overall it's functioning correctly with the values from my database. The issue arises when initiall ...

What causes my paragraph textContent to vanish after briefly displaying its value?

As a beginner in JavaScript and HTML, I am taking on the challenge of learning these languages from scratch independently. I have encountered an issue with my code where the word "Hi!" briefly flashes below the "Click Me!" button before disappearing compl ...

What is the best way to create a div that maintains a consistent size while displaying images inside?

Struggling with a project and attempting to create a fixed div container for uniform picture sizes, I've tested various methods recommended by others but have had zero success in altering the size of my div container. Could it be due to my use of boot ...

Leverage the power of JavaScript functions within the app.component.ts file of

I have a JavaScript file named action.js and I am trying to incorporate it into an Angular project. After doing some research, I found out that the js file should be placed in the assets folder and the path must be referenced in the scripts array within an ...

How to modify the link to ensure that a particular tab is already selected when the page loads

How to Add Script for Linking to Rawdata Tab I need help loading specific page content with the Rawdata tab open instead of the Summary tab. What code should I add to the link to ensure that the page loads with "Rawdata"? https://i.stack.imgur.com/avETs. ...

I am seeking guidance on retrieving the value of a text box that is activated by a radio button through jquery within the provided code

When conducting my test case, the user is presented with a choice between ielts and toefl. If the user chooses ielts, an input box appears where they can enter their ielts score. My goal is to extract and store the value entered in that input box. Check ou ...

Styling a horizontal navigation bar with CSS: Using list items (`li`) versus div elements (`div`)

Is it more semantically correct to float li elements within a ul, or should we opt for floating divs inside an external 'outer' div? ...

Utilize a single image to encompass the entire background/theme

As a beginner, I am eager to learn how to use html and css. I understand the importance of being able to style an entire webpage in order to prevent issues like page overload or cache problems. Are there any easy-to-understand examples available for begi ...

Fixing a div at the top post scroll - bug on iOS mobile device

I am looking to achieve a similar effect as demonstrated in the example below: https://css-tricks.com/scroll-fix-content/ Essentially, the goal is to have a div become fixed at the top of the page after scrolling to a certain point. Initially, the div wil ...

I am experiencing some difficulty with the GetServerDate using the JSON protocol in JQuery; it's

I am facing an issue while trying to execute a basic ajax call to fetch data from a file on a server. Even though I can access the file via the web browser and have diligently followed tutorials related to this topic, I have hit a dead end. Here is the sn ...

Evolving characteristics of Bootstrap popover

I am currently working on a text field and button setup where I have implemented a popover feature using Bootstrap. This is the code snippet I am using: function displayPopover() { $("#text").popover("show"); } The popover appear ...

Using two different colors in text with CSS

Is it possible to have text in two different colors like this: https://i.stack.imgur.com/R40W1.png In terms of HTML, I tried looking it up but found answers related to:- https://i.stack.imgur.com/GRAfI.png ...

Targeting an outer div based on checkbox status: a comprehensive guide

How can I target a div when a user checks a checkbox? Any advice on how to select an outer div when the checkbox is checked? ...

jQuery - Navbar with both horizontal and vertical orientation

I'm new to JavaScript and jQuery, and I'm looking to create a vertical nav/slider that follows the cursor when hovering over horizontal navbars links to reveal sub-links, essentially creating a dropdown menu effect. While I don't expect any ...

Is it possible to serialize the entirety of a website's Javascript state, including Closure/Hidden scopes?

My goal is to capture a "snapshot" of a webpage while maintaining its interactive functionality, allowing all Javascript states to be saved and restored. An example scenario where this would be beneficial is when a webpage contains script that utilizes glo ...

Google Web Fonts: Exploring the World of Font Weight Variations

It's quite puzzling as to why the weight of my Google web font in the navigation menu keeps changing on different pages even though I have specifically set it to 700. The CSS for the menu is exactly the same across all pages. Can anyone shed some ligh ...

The Javascript function fails to trigger during the OnKeyPress and OnKeyDown events

I have encountered an issue while trying to call a function called validateQty on both the onkeypress and onkeydown events of a text input field. When I was passing only one parameter, which is the event itself, everything was working perfectly fine. Howev ...

Header width does not fully occupy the available space

I'm working on a table that includes a div element for adding a header to it. <div class="table-responsive"> <table class="table"gt; <thead> <div class="topPic"><span><i class="fa fa-tree fa-2x"></i>< ...

What methods can be employed to prevent a custom CSS from overriding my personal styles?

Issue I've created a website with unique styles that I really like. However, I want to enhance its functionality by incorporating a custom dialog box from the BootBox library. The problem is that the extensive style sheet that comes with BootBox com ...