Align the reposition button with the pagination in the datatables

I am looking to adjust the placement of my buttons.

The buttons in question are for comparison, saving layout, and printing. I would like them to be inline with the pagination, as I am using datatables here.

<table id="sparepart_id" cellspacing="0" border="0" class="table table-striped nowrap dataTable" style="border-collapse: collapse;">
  <colgroup span="7" width="85"></colgroup>
  <tbody id="sparepart_data">
  </tbody>
</table>
<div style="position: relative;">
  <div class="col-md-8">
    <a href="#"><button type="button" class="btn btn-primary form-input" style="border-radius: 10px;font-size:13px;">COMPARE</button></a>
    <input type="hidden" name="btn_user_filter" id="btn_user_filter">
    <button type="button" class="btn btn-default form-input" data-filterType="user" style="border-radius: 10px;font-size:13px;">Save Layout</button>
  </div>
  <div class="col-md-4"><button type="button" class="btn btn-default" data-filterType="user" style="border-radius: 10px;"><i class="fa fa-print"></i>Print</button></div>
</div>

Check out a screenshot of the current layout here

Answer №1

It appears that you are utilizing the bootstrap layout

<table id="sparepart_id" cellspacing="0" border="0" class="table table-striped nowrap dataTable" style="border-collapse: collapse;">
  <colgroup span="7" width="85"></colgroup>
  <tbody id="sparepart_data">
  </tbody>
</table>
<div class="container-fluid">
<div class="row">
  <div class="col-md-8 col-sm-8 col-8">
    <a href="#"><button type="button" class="btn btn-primary form-input" style="border-radius: 10px;font-size:13px;">COMPARE</button></a>
    <input type="hidden" name="btn_user_filter" id="btn_user_filter">
    <button type="button" class="btn btn-default form-input" data-filterType="user" style="border-radius: 10px;font-size:13px;">Save Layout</button>
  </div> 
  <div class="col-md-4 col-sm-4 col-4"><button type="button" class="btn btn-default" data-filterType="user" style="border-radius: 10px;"><i class="fa fa-print"></i>Print</button></div>
</div>
</div>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

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

Error: The variable "message" has not been defined. Please define it before displaying the welcome

While I was experimenting with my welcome message and attempting to convert it into an embed, I ended up rewriting the entire code to make it compatible. However, upon completion, I encountered the error message is not defined. var welcomePath = './ ...

Issue with NPM identifying my module (demanding unfamiliar module)

Currently, I am developing a React-Native application and organizing my components into separate files. Most of the time, this method works perfectly fine except for one specific instance where I keep encountering a 'Requiring unknown module' err ...

Executing a function in the view/template with Angular 2+

Whenever a function is called in the view of an Angular component, it seems to be executed repeatedly. A typical example of this scenario can be seen below: nightclub.component.ts import { Component } from '@angular/core'; @Component({ selec ...

The dichotomy between public and private methods within a Vue.js component

Within a component, I have two functions defined. One is foo(), which is defined within <script>, and the other is fooExported(), which is defined in the body of export default {}. My understanding is that functions inside export default {} can be a ...

Is there a way to retrieve a large number of users through an API using async await?

I am trying to retrieve all users from an API and I want to identify which user receives the highest payment. For instance let users=['tom','jenny','smith','Joe'] async function getUsers() { let response = awa ...

Discover the best practices for utilizing the npm commands.test function

Looking to create a function that can return the output from running npm test. (this function can be called as npm.commands.test(packages, callback) here) Attempted to use it in this way: var npm = require("npm"); npm.load('', function(err, np ...

Monitoring inbound and outbound traffic in express middleware

I am in the process of incorporating a logger into my Express application. This logger needs to record both requests and responses (including status codes and body content) for each request made. My initial approach involves creating a middleware function ...

"Utilizing jQuery and Bootstrap 4 in TypeScript, attempting to close modal window using jQuery is not functioning

Trying to make use of jquery to close a bootstrap modal within an angular project using typescript code. The following is the code: function call in html: (click)="populaterfpfromsaved(i, createSaved, createProp)" createSaved and createProp are local ...

Incorporate a glyphicon into a webpage design that wasn't originally built with bootstrap while maintaining the original layout

Looking to jazz up my vintage website with some cool glyphicons on a specific page. Don't want to mess up the entire look of my site by installing bootstrap. Is there a way to add just the "glyphicons functionality" without changing everything else? ...

Error encountered with CORS in a Socket.io Express HTTP server backend

While developing an app that utilizes express for the backend, I decided to incorporate socket.io for real-time chat functionality. Everything was working flawlessly on postman until my front end react code triggered a cors error when making a GET request ...

Creating dynamic VueFire references is a powerful feature that allows for more flexibility and customization

I am currently exploring the creation of refs dynamically: The initial ref I created works fine as it is hardcoded, but the second one does not seem to work because it is dynamic: firebase: function(){ return { categories: db.ref('categ ...

Implementing modifications to all HTML elements simultaneously

In my HTML document, there are around 80 small boxes arranged in a grid layout. Each box contains unique text but follows the same structure with three values: name, email, and mobile number. I need to switch the positions of the email and mobile number v ...

The image will remain static and will not alternate between hidden and visible states

I am facing a challenge trying to toggle an image between 'hidden' and 'show' My approach is influenced by the post on How to create a hidden <img> in JavaScript? I have implemented two different buttons, one using html and the ...

Tips for sending a Python email with attachment and including an HTML body along with an alternative plain text body

Using Python, I have developed code to send emails with HTML bodies and attachments. Additionally, I would like to include a plain text email body for clients that cannot display HTML content properly. While my code works in most cases, I've encounter ...

What is the best location to initialize Firebase in a React Native application?

What is the best way to initialize Firebase in a React Native project and how can I ensure that it is accessible throughout the entire project? Below is my project structure for reference: Project Structure Here is a basic template for initializing Fireb ...

How to Keep Bootstrap 3 Accordion Open Even When Collapsed

I am in the process of building an accordion group with bootstrap 3. Here is the code I have so far: <div id="accordion" class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <div class ...

The button can only be edited using Internet Explorer

My webpage features a button that displays correctly in Chrome, but the text inside the button gets cut off when viewed in IE (see image). Can you provide guidance on what might be causing this issue and how to resolve it? Bootstrap version 4.0.0 is also b ...

Enhance your mouse movement for optimal efficiency

I am looking to implement a feature on a webpage where a menu is displayed whenever the cursor is near the edge of a <div>. One way to achieve this is by using the .mousemove function to track the cursor position and show/hide the menu based on proxi ...

Tips for integrating CSS with Material UI TableContainer

I have utilized Material UI Grid to display data in a chart. However, the appearance of the chart does not match my expectations. Instead of resembling the desired "dense table," it looks different: Actual Look of the Chart Below is the code snippet I ha ...

Creating a central navigation menu for a website

Currently, I am working on incorporating a menu in the center of a webpage (please note that this is not a top navigation menu). Here is the initial setup: Users are able to click on various menu items to access different content. I have written code fo ...