I have noticed that when I code, Bootstrap only seems to work on certain sections of the webpage, rather than the entire page. I am

I attempted to implement bootstrap in my entire project, but I encountered an issue where it only seemed to work for the heading tag and not for the other elements. Below are the codes I used:

<div class="container">
<div class="col-md-12">         
            <form class="form-horizontal templatemo-create-account templatemo-container" enctype="multipart/form-data" role="form" action="" method="post">
            <div class="form-inner">
            <center><em><h2>New Cumulative Deposit Account</h2></em></center>
            <div id="cum_app_info">
            <center> <h3> Personal Information </h3></center>
                <table class="table table-striped">
                <tr>
                <td> <label for="cumfirstapp" class="control-label">First Applicant</label> </td>
                <td> <input type="text" name="first_app" id="first_app"  required class="form-control" value=""> </td>
                <td> <label for="cumfirstappid" class="control-label">Member Id</label> </td>
                <td> <input type="text" name="first_cum_app_id" id="first_cum_app_id" required class="form-control" value=""> </td>
                </tr>
                <tr>
                <td> <label for="cumsecondapp" class="control-label">Second Applicant</label> </td>
                <td> <input type="text" name="second_app" id="second_app" class="form-control" value=""> </td>
                <td> <label for="cumsecondappid" class="control-label">Member Id</label> </td>
                <td> <input type="text" name="second_cum_app_id" id="second_cum_app_id" class="form-control" value=""> </td>
                </tr>
                <tr>
                <td colspan="4"><input type="submit" name="cum_app_next" class="btn btn-info" id="cum_app_next" value="Next" />
 </td>
                </tr>
                </table>
                </div>
                </div>
                </form>
                </div>
                </div>

Answer №1

I've recently made some slight adjustments by swapping out the "center" elements with .text-center classes, and everything seems to be functioning properly for me. Check it out here!

<div class="container">
        <div class="row">
            <div class="col-md-12">
                <form class="form-horizontal templatemo-create-account templatemo-container" enctype="multipart/form-data" role="form" action="" method="post">
                    <div class="form-inner">
                        <h2 class="text-center">
                            <em>New Cumulative Deposit Account</em>
                        </h2>
                        <div id="cum_app_info">
                            <h3 class="text-center">
                                Personal Information
                            </h3>
                            <table class="table table-striped">
                                <tr>
                                    <td>
                                        <label for="first_app" class="control-label">First Applicant</label>
                                    </td>
                                    <td>
                                        <input type="text" name="first_app" id="first_app" required="" class="form-control" value=""/>
                                    </td>
                                    <td>
                                        <label for="first_cum_app_id" class="control-label">Member Id</label>
                                    </td>
                                    <td>
                                        <input type="text" name="first_cum_app_id" id="first_cum_app_id" required="" class="form-control" value=""/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <label for="second_app" class="control-label">Second Applicant</label>
                                    </td>
                                    <td>
                                        <input type="text" name="second_app" id="second_app" class="form-control" value=""/>
                                    </td>
                                    <td>
                                        <label for="second_cum_app_id" class="control-label">Member Id</label>
                                    </td>
                                    <td>
                                        <input type="text" name="second_cum_app_id" id="second_cum_app_id" class="form-control" value=""/>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <input type="submit" name="cum_app_next" class="btn btn-info" id="cum_app_next" value="Next"/>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

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

Is there a way to delete highlighted text without using execCommand and changing the font color

With my current use of JavaScript, I am able to highlight or bold a selected text range successfully. However, I am unsure how to undo the bold and unhighlight the text if the button is clicked again and the selected range is already bolded or highlighted. ...

Is there a way to substitute a custom <form> element for the default <form> in an already existing plugin?

I am currently in the process of customizing a theme and a plugin within WordPress. In the plugin, there is a button that allows users to click on it to bring up a form where they can ask questions. While I want users to post their questions through this p ...

Utilize jQuery to dynamically apply Bootstrap classes while scrolling through a webpage

Having an issue with jQuery. Trying to include the fixed-top class (Bootstrap 4) when scrolling, but it's not working as expected. jQuery(document).ready(function($){ var scroll = $(window).scrollTop(); if (scroll >= 500) { $(".robig").a ...

``There seems to be an issue with CSS float not displaying

I'm struggling to get two divs to display next to each other without the formatting going haywire. Can anyone help me solve this issue? Check out the Fiddle here <div class="pull-right" style="width:400px;"> <div style="float:left; margin ...

How can I vertically align text in React-bootstrap Navbar Nav-items?

I have been struggling to find a solution to my problem without resorting to custom CSS classes. I'm wondering if it's possible to achieve what I need using only flex classes. Here is the code for a simple navbar component: <Navbar bg ...

switch control navbar feature in Django

I am currently working on a project and I am attempting to manage the color change of the navbar logo. After visiting the "about" page on my application, I want the navbar to change color, with half of it turning yellow to better complement the purple back ...

Trouble with getElementsByTagName function

Utilizing the NODE JS module, I have created an HTTP server that responds with a page containing JavaScript code to embed a webpage within an <iframe>. Within this <iframe>, I am trying to access its elements using the getElementsByTagName meth ...

What is the process for updating the source in an input box?

How can I use JavaScript to update the src value of an iframe based on input? <input class="url" id="url1" type="url" value="youtube url"> <input onclick="changevideo()" class="add-video" id="add-video1" type="submit" value="add to play ...

Resizing a column in the Bootstrap CSS grid causes adjacent columns to move

I am currently working with a bootstrap grid that includes an expand component. The issue I am facing is that when I expand one column, the other columns in the same row also shift. Is there a way to make each column independent of the others? expand co ...

Leverage the power of Bootstrap by showcasing several carousels in a sleek grid layout

How can I display dynamically generated carousels in a grid format using Bootstrap4? Current formation: https://i.sstatic.net/H3du7.png I want to showcase multiple carousels containing one or more images in a clean grid layout instead of the current hor ...

Creating a set width for the input-group-append division in Bootstrap 4

I am currently utilizing the power of Bootstrap 4's input group feature to position an icon next to an input field. My goal is to set a fixed width of 40px for the div containing the input-group-append (which houses the icon). According to the offici ...

Datepicker from Bootstrap is not visible even after implementation of a function

My code is available on js fiddle https://jsfiddle.net/9n3c8726/. I am trying to get the datepicker to appear as soon as I click on the field. I have already enclosed it in a function, but it doesn't seem to be working. Any assistance would be greatly ...

Inspecting HTML elements with Capybara for class and ID attributes

Trying to locate an element and use Capybara for validation. There's a specific element that I want to check for using page.should have_css. <i class="ui-grid-icon-cancel" ui-grid-one-bind-aria-label="aria.removeFilter" aria-lab ...

Is there a way to implement an onclick event on a specific line of text that triggers a popup box only when the text is clicked, without the popup appearing automatically when

I received assistance from a fellow user to customize a popup that turned out great. However, I'm having trouble getting the onclick function to work properly so that the popup only appears when the phone number is clicked. Ideally, I want the phone n ...

Aligning the <div> list to the center of the webpage

Is there a way to center this list element on the page? It consists of three boxes that are all the same size, and I want them to always remain in the middle. body { width: 100%; } .boxes { display: block; margin: 0 auto; } .box-container ...

Issues with ng-show functionality occurring during the initialization of the webpage

While working on a webpage using HTML, CSS, and Angular.js, I encountered an issue where the page content would not display properly upon loading. The objective was to show selected content based on user choices from a dropdown menu. Although the filtering ...

developing a sleek visual transition using CSS animation

Have you seen the awesome animation on Discord's website? Check it out here! The way those coins move up and down so smoothly is really impressive. How can I recreate that effect for my own images? I decided to start with this code snippet img { ...

Encountered an error 'Unexpected token ;' while attempting to include a PHP variable in a jQuery AJAX call

Trying to execute a PHP script that updates a deleted field in the database when you drag a specific text element to a droppable area. Currently, here is the droppable area code: <div class="dropbin" id="dropbin" > <span class="fa fa-trash-o ...

Using PHP to generate a single random number that is shared among all connected clients

Hello friends, I find myself faced with a challenge at the moment. I'm brainstorming an effective method to show a random number that will be synchronized across all connected clients every 120 seconds. Currently, I've set up a system to calcula ...

Which Wordpress theme would be best suited for this particular website?

I am looking to create a website on WordPress that resembles the design of this specific webpage: http://www.landrover.co.uk/index.html I need it for commercial purposes. Are there any templates available, either free or paid, with similar features? I do ...