Teman-teman pasti sudah tidak asing lagi dengan kata alignment yang terdapat pada judul di atas, apakah teman-teman tau apa fungsinya, ya benar sekali untuk mengatur posisi sebuah konten, seperti halnya kita menggunakan word ya, kita mengatur posisinya mau di sebalah mana, disini kita akan memabahasnya mengenal dan menggunakan alignment di bootstrap 4, lagi-lagi disini bootstrap membuatnya lebih simple lagi, seperti biasa dengan class bawaan bootstrap kita bisa mengatur posisinya, oke bagaimana cara membuatnya simak terus ya teman-teman.
Sebelum saya melanjutkan apakah teman-teman masih ingat posisinya, ada top, bottom, tengah ya, dan lain-lain, oke mengenal dan menggunakan alignment di bootstrap 4, saya tidak harus panjang lebar karena saya yakin teman-teman sudah bisa mengerti apa yang saya maksud ya, oke bagaimana cara membuatnya seperti ini lah:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>mengenal dan menggunakan alignment di bootstrap 4</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>mengenal dan menggunakan alignment di bootstrap 4</h1>
<div class="row bg-success">
<div class="col-md-6">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's <span class="d-block bg-warning"> standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book</span> . It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</div>
<div class="col-md-6">
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance.</p>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<table -e-style="height: 100px; background: aqua" border="1">
<tr>
<td class="align-baseline">baseline</td>
<td class="align-top">top</td>
<td class="align-middle">middle</td>
<td class="align-bottom">bottom</td>
<td class="align-text-top">text-top</td>
<td class="align-text-bottom">text-bottom</td>
</tr>
</table>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<-e-script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"><-e-/script>
<-e-script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"><-e-/script>
<-e-script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"><-e-/script>
</body>
</html>
Perhatikan yang tag table ya teman-teman.
yang saya berikan background warna aqua ya teman-teman, oke saya rasa cukup sampai disini dulu belajar kita tentang mengenal dan menggunakan alignment di bootstrap 4, semoga bermnafaat dan sampai jumpa pada artikel selanjutnya terimakasih.
