Primer CSS Layout The media object Last Updated : 02 Jun, 2022 Comments Improve Suggest changes Like Article Like Report Primer CSS is a free and open-source CSS framework that is built using the GitHub design system for providing support to the broad spectrum of GitHub websites. It helps in creating the foundation of the basic style elements such as spacing, components, typography, color, etc. In this article, we will see about the media object in primer CSS layout. A media object is a type of container that consists of images and texts and is made up of primer CSS utilities. Primer CSS Layout media object classes: For creating a media object in primer CSS, there is no specific class given by Primer CSS. You need to compile different classes according to your need. Syntax: <div class="clearfix p-3 border"> <div class="float-left p-3 mr-3 color-bg-subtle"> ... </div> <div class="overflow-hidden"> <p>...</p> </div> </div> Example 1: Below example demonstrates a media object container. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Primer CSS</title> <link href= "https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" rel="stylesheet" /> </head> <body> <div class="m-4"> <h1 style="color:green">GeeksforGeeks</h1> <h2>Primer CSS Layout Media Object</h2> </div> <div class="clearfix p-3 border m-4"> <div class="float-left mr-3"> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20220221132017/download.png" width="80" alt=""> </div> <div class="overflow-hidden"> <p>Welcome to GeeksforGeeks! It is a place for all coders and geeks who want to learn computer science skills.</p> </div> </div> </body> </html> Output: Example 2: Below example demonstrates a double-sided media object container with a flexible center. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Primer CSS</title> <link href="https://unpkg.com/@primer/css@^19.0.0/dist/primer.css" rel="stylesheet" /> </head> <body> <div class="m-4"> <h1 style="color:green">GeeksforGeeks</h1> <h2>Primer CSS Layout Media Object</h2> </div> <div class="clearfix p-3 border m-4"> <div class="float-left mr-3"> <img src= "https://media.geeksforgeeks.org/wp-content/uploads/20220221132017/download.png" width="80" alt=""> </div> <div class="float-right ml-3 p-5 color-bg-success"> GFG Premium </div> <div class="overflow-hidden"> <p>Are you a Geek! Then where are you, come and explore GeeksforGeeks premium portal and get premium job access to all the jobs.</p> </div> </div> </body> </html> Output: Reference: https://primer.style/css/utilities/layout#the-media-object Comment More infoAdvertise with us Next Article Primer CSS Layout The media object tarunsinghwap7 Follow Improve Article Tags : Web Technologies CSS Primer-CSS Similar Reads Primer CSS Marketing Layout Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. It is highly reusable and flexible. It is created with GitHubâs design system. Primer CSS Layout is used to change the document lay 3 min read Primer CSS Layout Primer CSS is a free and open-source CSS framework. It is built upon the systems that create the foundation of the basic style elements such as spacing, typography, and color. Created with GitHubâs design system, it is highly reusable and flexible.Primer CSS Layout is used to change the document lay 2 min read Primer CSS Layout Position Primer CSS is a free open-source CSS framework that is built with the GitHub design system to provide support to the broad spectrum of Github websites. It creates the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure that our patterns ar 3 min read Foundation CSS Media Object Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. It has numerou 6 min read Foundation CSS Media Object Sass Reference Foundation CSS is an open-source and responsive front-end framework created by ZURB in September 2011 that makes it simple to create stunning responsive websites, apps, and emails that operate on any device. Many companies, like Facebook, eBay, Mozilla, Adobe, and even Disney, use it. This framework 3 min read Primer CSS Layout - Nesting Layouts Primer CSS is a free and open-source CSS framework that is built using the GitHub design system for providing support to the broad spectrum of GitHub websites. It helps in creating the foundation of the basic style elements such as spacing, components, typography, color, etc. In this article, we wil 2 min read CSS object-fit Property The CSS object-fit property is used to control how an image or video is resized to fit its content box. This property offers various methods to fill the content box, such as preserving the aspect ratio or stretching the content to occupy as much space as possible. Additionally, the alignment positio 4 min read Primer CSS Layout Floats Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by 2 min read Primer CSS Layout Display Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by 2 min read Foundation CSS Kitchen Sink Media Object Foundation CSS is the frontend framework of CSS that is used to build responsive websites, apps, and emails that work perfectly on any device. It is written using HTML, CSS, and Javascript and is used by many famous companies like Amazon, Facebook, eBay, etc. It uses packages like Grunt and Libsass 2 min read Like