Tips on creating a line break within a text box

There is a gap between the text boxesIn the first row, I used text boxes with labels. When I use a text box with a label, the text box is attached to the text box in the first row. I tried using a break line
but in mobile view, there is a gap showing between the text boxes from the first row to the second row text boxes. Instead of a break line, these text boxes are being used in an accordion.

<div class="col-md-6">
   <div class="panel panel-default">
      <div class="panel-heading" style="background-color: #b3daff;">
         <h4 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion"
               href="#collapseFour"> <span style="font-weight: 700;">Banking
            Details</span> <span class="glyphicon glyphicon-plus"
               style="color: darkred">&nbsp;</span>
            </a>
         </h4>
      </div>
      <div id="collapseFour" class="panel-collapse collapse">
         <div class="panel-body">
            <div class="col-sm-4 col-md-6">
               <div class="row">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">Bank
                     Name</label>
                     <div class="col-md-12">
                        <input type="text" class="form-control" id="fname" required
                           placeholder="Bank Name" />
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-sm-4 col-md-6">
               <div class="row">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">Account
                     Number </label>
                     <div class="col-md-12">
                        <input type="text" class="form-control" id="fname" required
                           placeholder="Account Number" />
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-sm-4 col-md-6">
               <div class="row">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">IFSC
                     CODE </label>
                     <div class="col-md-12">
                        <input type="text" class="form-control" id="fname" required
                           placeholder="IFSC CODE" />
                     </div>
                  </div>
               </div>
            </div>
            <div class="col-sm-4 col-md-6">
               <div class="row" style="visibility: hidden">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">IFSC
                     CODE </label>
                     <div class="col-md-12">
                        <input type="text" class="form-control" id="fname" required
                           placeholder="IFSC CODE" />
                     </div>
                  </div>
               </div>
            </div>
            <br /><br /><br /><br />
            <div class="col-sm-4 col-md-12">
               <div class="row">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">Bank
                     Address </label>
                  </div>
               </div>
            </div>
            <div class="col-sm-4 col-md-12">
               <div class="row">
                  <div class="form-group">
                     <label class="control-label col-sm-12 col-md-8">Address
                     Line 1 </label>
                     <div class="col-md-12">
                        <textarea class="form-control" id="fname" required
                           placeholder="Address Line 1" ></textarea>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <!----Ends second column-------->
</div>

Answer №1

For creating a text break, insert <br>

To add a line break (across the div), you can use: <hr>

You can customize the spacing by adding classes to the <br> and <hr> tags

Example: <br class="small-break">

CSS:

.small-break {
  margin-top: 5px;
  margin-bottom: 5px;
}

Answer №2

In search of some spacing? Simply insert <br> or several of them wherever you feel the need for breaks.

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

When utilizing jQuery version 1.10.2, the HTML markup shows up prior to the page completing its loading process

I am trying to import one HTML page into another, but when I load or refresh the page, the HTML markup appears before the page fully loads. How can I fix this issue? <head> <script type="text/javascript" src="js/jquery-1.10.2.js" ></scr ...

Creating dual modes (night/day) for your AngularJS application

Currently, I am in the process of developing a project with Angularjs and facing an obstacle with animations. My goal is to implement a feature in my application that allows it to display in two different modes - night mode and day mode. I have come ac ...

Mastering HTML Tag Styling within Visual Studio

I'm looking for assistance on how to automatically format HTML tags using the Ctrl + K, Ctrl + D shortcut. For example: <label id="myLabelId">Hello</label> should be reformatted to: <label id="myLabelId"> Hello </label> ...

Struggling to send an object through a node route for rendering a page?

Currently tackling a node.js project using express.js. I have a route that renders an ejs page and passes along the team object. Strangely, when I try to access <%= team.member.name %>, it returns as undefined despite the information being present. A ...

If the width is divisible by a certain value

I have a question regarding the width of my element that I want to divide by 90. If this width is a multiple of 90, I set the width of the element. If not, I move on to the next. For example, when the window width is 1000px and the element is at full widt ...

Is it acceptable to conceal items by utilizing display:none?

When dealing with a dynamic website that includes components from various plugins, is it acceptable to hide elements temporarily or permanently using display:none? Sometimes clients may request certain items to be hidden from the page, so instead of removi ...

Sending target information as a property argument

I have encountered an issue with my app's two Bootstrap modals. It seems that many people are facing problems with opening the second modal. Is it possible to pass data-target and modal id properties as props in this manner: data-target={props.da ...

Dynamic Data Binding in Ionic 2

One challenge I am facing is with creating my own info window for a Google Maps marker. Whenever I click on the marker, a div is displayed but the information inside the div does not get updated. It seems like the event.title remains unchanged from its old ...

Tips for locating direct children of a non-root element using CSS selectors in Selenium

When working with a <table> element, I encountered the need to search for its descendants and direct descendants while avoiding wading through nested tables. The elements I seek lack reasonable IDs, so specific selectors are essential: <html> ...

Is there a way to specifically dictate the order in which flexbox items expand or contract?

I am facing an issue with my flex container setup involving three children elements. I have specified both minimum and maximum widths for each child, but I want them to grow or shrink in a specific order as the window width changes. Ideally, Item1 should s ...

What is the best way to present a Python list in individual lines on an HTML webpage?

This might be a simple question, and I apologize if I haven't explained it clearly. This is my first time working with HTML, and I'm using a given program that I don't fully comprehend. In the python program, app.py, I read a list of string ...

Modifying .vue files within Laravel seems to unexpectedly impact unrelated CSS styles

I've been working on a Laravel project that involves building Vue components. Strangely, every time I update a .vue file and add it for a commit, modifications are also made to the app.css and app.js files. These changes seem to be undoing a particula ...

The persistent space between the navbar and the index page remains despite the suggested fixes provided

There appears to be a discrepancy between the navigation bar and the rest of the page. Despite my efforts to adjust margins, I haven't been able to resolve it. The system is prompting me for more details before posting this question, but I'm unsu ...

Building a dynamic search feature using Ajax and PHP to transfer search results to a PHP variable or display as plain text

I designed a form that allows users to input orders with various details into the database. One of the fields in this form is labeled Client, where users have the option to either create a new client or select an existing one. To facilitate the selection ...

Tired of searching for a way to activate the Inspect function in the right-click menu on a custom dialog while debugging Google apps

I'm currently working on implementing a file picker function within Google Sheets by using the Google Picker API. Although I have managed to display a customized dialog window for selecting files from my Google Drive, the output is not exactly what I ...

Discover the steps to dynamically alter the inclusion of the Bootstrap CSS file within an Angular project

I manage a multi-language website in both English (EN) and Arabic (AR). Currently, I am utilizing Bootstrap CSS from a CDN and adjusting the CDN link based on the selected language. index.html <!DOCTYPE html> <html lang="en"> <h ...

React's struggle with implementing flexbox functionality

Struggling to implement a calculator using React and flexbox, but running into issues with my flexbox layout. I've attempted to troubleshoot using the Chrome Dev Tools but haven't made any progress. import React, { Component } from "react"; imp ...

Determining if the device is connected to the internet

Is there a way to create a unique code using HTML, JavaScript, or jQuery that executes a random action when the website detects that the device is offline? ...

Ways to display text when hovering over an image link

Despite trying various techniques recommended by fellow Stackoverflow users who faced similar issues, I still encountered a problem where the text appeared below the image even after applying the suggested methods to my code. I also experimented with a me ...

Teaching jQuery selectors to detect recently-added HTML elements

Unable to find a solution in the jQuery documentation, I am seeking help here for my specific issue. Embracing the DRY principle, I aim to utilize JavaScript to include a character countdown helper to any textarea element with maxlength and aria-described ...