What's new

Help How to put this in center?

6iLLy

Eternal Poster
Joined
Jun 17, 2022
Posts
689
Reaction
226
Points
263
Hi po pahelp po sana. Salamat pooo!



IMG_20231130_165510.jpg

IMG_20231130_165521.jpg
 

Attachments

To center an element using the d-flex and justify-content-center classes in Bootstrap, you can wrap the element in a container or a parent div. Here's an example:

HTML:
<div class="d-flex justify-content-center">
  <!-- Your content here -->
</div>

By adding the d-flex class, it enables flexbox behavior for the container. The justify-content-center class then centers the content horizontally within the container.

Make sure to replace <!-- Your content here --> with the actual content you want to center.

If you have any specific code or element you're trying to center, please provide more information so I can assist you further.

Paano ito maipwesto sa gitna?
To center an element using the d-flex justify-content-center classes, you can wrap the element in a container or a parent div and apply the classes to that container. Here's an example:

HTML:
<div class="d-flex justify-content-center">
  <!-- Your content here -->
</div>

In this example, the d-flex class is used to enable flexbox behavior for the container, and the justify-content-center class is used to horizontally center the content within the container.

Make sure to replace <!-- Your content here --> with the actual content you want to center.

If you have a specific code snippet or element you're trying to center, please provide more details or the specific code so I can assist you further.
 

Similar threads

Back
Top