dir.by  
  Search  
Programming, development, testing
Bootstrap - buttons, menus, dialog, slider ... Containers for placing elements
class="form-inline" items on a single line | Bootstrap 4.0
  Looked at 4175 times    
 class="form-inline" items on a single line in the Bootstrap 4.0 
last updated: 10 January 2019
Use class="form-inline" to display labels, controls, buttons in a single horizontal row.
Example
  Html  
<html>

     <!-- title -->
     <head>
          <meta charset="utf-8">
          <title>Example</title>
     </head>

     <body>
          <!-- connect library jQuery -->
          <script src="https://dir.by/example_lib/jquery/jquery-3.3.1.min.js"></script>

          <!-- connect library Bootstrap (js file) -->
          <script src="https://dir.by/example_lib/bootstrap-4.1.3/js/bootstrap.min.js"></script>
    
          <!-- connect library Bootstrap (css file) -->
          <link rel="stylesheet" href="https://dir.by/example_lib/bootstrap-4.1.3/css/bootstrap.min.css">

          <!-- form -->
          <form class="form-inline">
               <input type="text" class="form-control mr-sm-2" placeholder="Search">
               <button type="submit" class="btn btn-default">Click me</button>
          </form>

     </body>
</html>
Example we look, we test
 
← Previous topic
"Navbar" in the Bootstrap 4.0 - this is the main horizontal menu for the site (navigation headers)
 
Next topic →
class="navbar-expand-lg" disappears if the area size is smaller lg | Bootstrap 4.0
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

  Объявления  
  Объявления  
 
What the Bootstrap?
Bootstrap where to download and how to connect?
Containers in the Bootstrap ("container-fluid" and "container")
Bootstrap Version 4.0
Bootstrap 4 difference from Bootstrap 3
Elements
"Navbar" in the Bootstrap 4.0 - this is the main horizontal menu for the site (navigation headers)
Styles
class="form-inline" items on a single line | Bootstrap 4.0
class="navbar-expand-lg" disappears if the area size is smaller lg | Bootstrap 4.0
class="mr-auto" move to the right edge , class="ml-auto" move to the left edge | Bootstrap 4.0
Vertical indentation, horizontal indentation | Bootstrap 4.0
to study
WEB Sites to explore Bootstrap 4.0
Bootstrap items for the version 3 and 4
Create a grid "col-md-number" in the Bootstrap 3 and Bootstrap 4
WWW sites for learning Bootstrap
Sites to explore Bootstrap

  Ваши вопросы присылайте по почте: info@dir.by  
Яндекс.Метрика