|
MDBootstrap is a Material Design and bootstrap-based Angular UI library that is used to make attractive webpages with its seamless and easy-to-use component. In this article, we will know how to use Media Objects Layout in Angular MDBootstap. The Media Objects Layout is used to build complex & highly repetitive components, that facilitates adding the media to an element, positioning the media alongside the content, without wrapping around it, etc. Syntax: <div class="media"> <img class="d-flex mr-3" src="link" alt="text"> <div class="media-body"> Content </div> </div> Approach:
npm install
cd appname
ng serve Project Structure: After complete installation, it will look like the following: Project Structure Example 1: This is the basic example that illustrates how to use the Media Objects Layout in Angular MDBootstrap. app.component.html
app.component.ts
app.module.ts
Output: Example 2: This example illustrates how to change the alignment of the Media Objects Layout in Angular MDBootstrap. app.component.html
app.component.ts
app.module.ts
Output: Reference: https://mdbootstrap.com/docs/angular/layout/media-object |
Reffered: https://www.geeksforgeeks.org
Web Technologies |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |