The only custom CSS you would need in this example is what is necessary to apply your own custom background color and to ensure that the img is properly sized. Additional utility classes like px-3 and py-2 are used to provide additional padding. We apply d-inline-block to your hyperlink so that the background will wrap around the element properly, and allow for proper centering and spacing. In the above code we're using d-flex-inline (a utility component for Bootstrap 4.x) to apply display: inline-flex to the element which lets us break out of the block-level nature of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |