. Line breaks are a specific formatting behavior inherent to
. Additional styles can be applied via the
's class or id."/>
. Line breaks are a specific formatting behavior inherent to
. Additional styles can be applied via the
's class or id.">

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

How to make div right in bootstrap

尚
Original
2019-07-18 18:01:4112276browse

How to make div right in bootstrap

bootstrap right-aligns the div code as follows:

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

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:

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

Thedc6dce4a544fdca2df29d5ac0ea9906b 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 dc6dce4a544fdca2df29d5ac0ea9906b 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.

dc6dce4a544fdca2df29d5ac0ea9906b 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 dc6dce4a544fdca2df29d5ac0ea9906b. Additional styles can be applied via the class or id of the dc6dce4a544fdca2df29d5ac0ea9906b.

It is not necessary to add a class or id to each dc6dce4a544fdca2df29d5ac0ea9906b, although there are certain benefits to doing so.

You can apply class or id attributes to the same dc6dce4a544fdca2df29d5ac0ea9906b 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!

Statement:
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