Home > Web Front-end > Bootstrap Tutorial > How to make div right in bootstrap

How to make div right in bootstrap

Release: 2019-07-18 18:01:41
Original
12280 people have browsed it

How to make div right in bootstrap

bootstrap right-aligns the div code as follows:

<div class="col-lg-5  pull-right"></div>
Copy after login

div introduction:

DIV tag , called a separation mark. The function is to set the placement position of words, paintings, tables, etc. When you put text, images, or anything else inside a DIV, it can be called a "DIV block", or a "DIV element" or a "CSS-layer", or simply a "layer". In Chinese we call it "level".

Definition:

can define the division or section (division/section) in the document.

The

tag can divide the document into independent and different parts. It can be used as a strict organizational tool and does not use any formatting associated with it. If
is marked with id or class, the tag will become more effective.

Usage:

The DIV tag will be more powerful when applied to Style Sheet (style sheet). Its ultimate purpose is to give designers another organizational ability, including Class, Style, title, ID and other attributes.

is a block-level element. This means that its contents automatically start on a new line. In fact, line breaks are a specific formatting behavior inherent in
. Additional styles can be applied via the class or id of the
.

It is not necessary to add a class or id to each

, although there are certain benefits to doing so.

You can apply class or id attributes to the same

element, but it is more common to apply only one of them. The main difference between the two is that class is used for groups of elements (similar elements, or can be understood as a certain type of elements), while id is used to identify individual specific elements.

For more technical articles related to Bootstrap, please visit the Bootstrap Tutorial column to learn!

The above is the detailed content of How to make div right in bootstrap. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template