Margin and Display Utilities

Dear Sciaku Learner you are not logged in or not enrolled in this course.

Please Click on login or enroll now button.

If you have any query feel free to chat us!

Happy Coding! Happy Learning!

Lecture 98:- Margin and Display Utilities

Bootstrap provides several margin and display utilities to help you easily style elements on your page.

Margin Utilities:

  • .m-* classes for setting margin on all sides
  • .mt-* classes for setting margin on top
  • .mr-* classes for setting margin on right
  • .mb-* classes for setting margin on bottom
  • .ml-* classes for setting margin on left
  • .mx-* classes for setting margin on x-axis (left and right)
  • .my-* classes for setting margin on y-axis (top and bottom)

The * in the class names is replaced with a number to set the size of the margin. For example, .m-3 sets a margin of 1rem, and .mt-5 sets a margin-top of 2.5rem.

Display Utilities:

  • .d-none to hide an element
  • .d-inline to display an element as an inline element
  • .d-inline-block to display an element as an inline-block element
  • .d-block to display an element as a block-level element
  • .d-flex to display an element as a flex container
  • .d-inline-flex to display an element as an inline flex container

These utilities allow you to easily control the visibility and layout of elements on your page. You can use these classes directly on the elements you want to style, or add them to your own custom classes and reuse them throughout your project.

12. Bootstrap

2 Comments

@niteshguptav63
niteshguptav63 Nov 17, 2024 at 1:39 PM

I am not able to access videos from second class and further. I have already completed first class

@niteshguptav63
niteshguptav63 Nov 16, 2024 at 10:56 AM

When will I get my course?

@admin79
admin79 Nov 17, 2024 at 1:29 PM

Now, Your query was resolved.

Frequently Asked Questions About Sciaku Courses & Services

Quick answers to common questions about our courses, quizzes, and learning platform

Didn't find what you're looking for?

help_center Contact Support