Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">

		<center>
			<h3>Tutorial Komponen Media Object Dengan Bootstrap 4</h3>
			<h4><a href="https://www.malasngoding.com/media-object-bootstrap-4/">www.malasngoding.com</a></h4>
		</center>

		<br>
		<br>
		
		<h4>Media Object Biasa</h4>
		<br/>

		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 100px">
			<div class="media-body">
				<h5 class="mt-0">Judul di sini</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
		</div>

		<br/>
		<hr>
		<br>

		<h4>Media Object Nesting</h4>
		<br/>

		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 100px">
			<div class="media-body">
				<h5 class="mt-0">Media heading</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.

				<div class="media mt-3">
					<a class="mr-3" href="#">
						<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 100px">
					</a>
					<div class="media-body">
						<h5 class="mt-0">Media heading</h5>
						Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
					</div>
				</div>

			</div>
		</div> 
		
		<br/>
		<hr>
		<br>

		<h4>Posisi Gambar Media Object</h4>
		<br/>

		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="align-self-start mr-3" alt="..." style="width: 70px">
			<div class="media-body">
				<h5 class="mt-0">Posisi gambar di atas</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
		</div>

		<br/>
		<hr>
		<br>

		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="align-self-center mr-3" alt="..." style="width: 70px">
			<div class="media-body">
				<h5 class="mt-0">Posisi gambar di tengah</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
		</div>

		<br/>
		<hr>
		<br>

		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="align-self-end mr-3" alt="..." style="width: 70px">
			<div class="media-body">
				<h5 class="mt-0">Posisi gambar di bawah</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
		</div>

		<br/>
		<hr>
		<br>


		<div class="media">
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 70px">
			<div class="media-body">
				<h5 class="mt-0">Posisi gambar di kiri</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
		</div>

		<br/>
		<hr>
		<br>

		<div class="media">
			<div class="media-body">
				<h5 class="mt-0">Posisi gambar di kanan</h5>
				Contoh isi konten media object. Media object bisa digunakan sebagai kolom komentar seperti pada contoh ini. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
			</div>
			<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 70px">
		</div>


		<br/>
		<hr>
		<br>

		<h4>Media Object List</h4>
		<br/>


		<ul class="list-unstyled">
			<li class="media">
				<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 80px">
				<div class="media-body">
					<h5 class="mt-0 mb-1">Komentar 1</h5>
					contoh media list. pura-pura nya ini adalah kolom komentar pertama dari user. belajar bootstrap 4 di www.malasngoding.com
				</div>
			</li>
			<li class="media my-4">
				<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 80px">
				<div class="media-body">
					<h5 class="mt-0 mb-1">Komentar 2</h5>
					contoh media list. pura-pura nya ini adalah kolom komentar kedua dari user. belajar bootstrap 4 di www.malasngoding.com
				</div>
			</li>
			<li class="media">
				<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 80px">
				<div class="media-body">
					<h5 class="mt-0 mb-1">Komentar 3</h5>
					contoh media list. pura-pura nya ini adalah kolom komentar ketiga dari user. belajar bootstrap 4 di www.malasngoding.com
				</div>
			</li>
			<li class="media my-4">
				<img src="https://images.pexels.com/photos/1895587/pexels-photo-1895587.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" class="mr-3" alt="..." style="width: 80px">
				<div class="media-body">
					<h5 class="mt-0 mb-1">Komentar 4</h5>
					contoh media list. pura-pura nya ini adalah kolom komentar keempat dari user. belajar bootstrap 4 di www.malasngoding.com
				</div>
			</li>
		</ul>







	</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console