dir.by  
  Search  
Programming, development, testing
Bootstrap - buttons, menus, dialog, slider ... Containers for placing elements
Vertical indentation, horizontal indentation | Bootstrap 4.0
  Looked at 5532 times    
 Vertical indentation, horizontal indentation | Bootstrap 4.0 
last updated: 17 January 2019
{property}{sides}}-{size}
Size extra small (xs)
Applies to phones.
{property}{sides}-sm-{size}
Size small (sm)
Applies to phones.
for width 576px and more
{property}{sides}-md-{size}
size medium (md)
It is used for tablets.
for width 768px and more
{property}{sides}-lg-{size}
size large (lg)
Applies to computer monitors
for width 992px and more
{property}{sides}-xl-{size}
size extra large (xl)
Applies to computer monitors
for width 1200px and more
Instead of {property} you must specify the first letter of the indentation name
m - margin (inner indentation)
p - padding (External indentation)
Instead of {sides} you must specify the side
t - indent only above
b – indent only from below
l – indent only left
r – indent only right
x – indentation left and right
y – indentation above and from below
- that is, an empty indent will be set for all parties of the element left right above from below
Instead of {size} you need to set the amount of indentation
0 (This is 0);
1 (This is $spacer * .25);
2 (This is $spacer * .5);
3 (This is $spacer);
4 (This is $spacer * 1.5);
5 (This is $spacer * 3);
auto can only be used for margin.
Examples
class="p-3" This is padding indentation for all parties

class="ml-lg-3" This is margin indent for the left side

Read more:
getbootstrap.com
itchief.ru/bootstrap/spacing-v4
 
← Previous topic
class="mr-auto" move to the right edge , class="ml-auto" move to the left edge | Bootstrap 4.0
 
Next topic →
WEB Sites to explore 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  
Яндекс.Метрика